Skip to content

Commit 8d215ce

Browse files
Release for Cosmos spark connector 4.5.2 (Azure#26079)
* Cosmos Spark: Fixes a bug where bulk responses with mixed results don't handle 400/409 for individual item operations properly * Fixing scala stylecop violations * Avoiding to log payload in the case of errors. PK+id should be sufficient to debug any failures * Release for Cosmos spark connector 4.5.2
1 parent 96c98c3 commit 8d215ce

File tree

12 files changed

+19
-15
lines changed

12 files changed

+19
-15
lines changed

eng/jacoco-test-coverage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<dependency>
179179
<groupId>com.azure</groupId>
180180
<artifactId>azure-cosmos</artifactId>
181-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
181+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
182182
</dependency>
183183
<dependency>
184184
<groupId>com.azure</groupId>

eng/versioning/version_client.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ com.azure:azure-core-serializer-json-gson;1.1.9;1.2.0-beta.1
7878
com.azure:azure-core-serializer-json-jackson;1.2.10;1.3.0-beta.1
7979
com.azure:azure-core-test;1.7.5;1.8.0-beta.1
8080
com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.17;1.0.0-beta.18
81-
com.azure:azure-cosmos;4.23.0;4.24.0-beta.1
81+
com.azure:azure-cosmos;4.23.0;4.24.0-snapshot.2
8282
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
8383
com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1
84-
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.6.0-beta.1;4.6.0-beta.1
84+
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.5.2;4.5.2
8585
com.azure:azure-cosmos-encryption;1.0.0-beta.9;1.0.0-beta.10
8686
com.azure:azure-data-appconfiguration;1.2.4;1.3.0-beta.1
8787
com.azure:azure-data-appconfiguration-perf;1.0.0-beta.1;1.0.0-beta.1

sdk/cosmos/azure-cosmos-benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Licensed under the MIT License.
4646
<dependency>
4747
<groupId>com.azure</groupId>
4848
<artifactId>azure-cosmos</artifactId>
49-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
49+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
5050
</dependency>
5151

5252
<dependency>

sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Licensed under the MIT License.
4646
<dependency>
4747
<groupId>com.azure</groupId>
4848
<artifactId>azure-cosmos</artifactId>
49-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
49+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
5050
</dependency>
5151

5252
<dependency>

sdk/cosmos/azure-cosmos-encryption/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Licensed under the MIT License.
4747
<dependency>
4848
<groupId>com.azure</groupId>
4949
<artifactId>azure-cosmos</artifactId>
50-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
50+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
5151
</dependency>
5252

5353
<dependency>

sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Release History
2-
### 4.6.0-beta.1 (Unreleased)
2+
### 4.5.2 (2021-12-17)
3+
#### Key Bug Fixes
4+
* Fixed an issue in the Java SDK that would expose request timeouts from the Gateway endpoint with StatusCode==0 instead of 408. This resulted in not retrying these transient errors in the Spark connector as expected. - See [PR 26049](https://github.com/Azure/azure-sdk-for-java/pull/26049)
5+
* Fixed a bug where bulk responses with mixed results don't handle 400/409 for individual item operations properly. This resulted in silently ignoring these 400/409 errors - the Spark job (for example to Upsert documents) completed "successfully" (because the 400s were silently ignored) without actually upserting the documents. This fix ensures that these errors are thrown, and the Spark job fails. - See [PR 26069](https://github.com/Azure/azure-sdk-for-java/pull/26069)
36

47
### 4.5.1 (2021-12-14)
58
#### Key Bug Fixes

sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
2626

2727
| Connector | Supported Spark Versions | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
2828
| ------------- | ------------------------ | -------------------- | ----------------------- | ----------------------------- |
29+
| 4.5.2 | 3.1.1 - 3.1.2 | 8 | 2.12 | 8.\*, 9.\* |
2930
| 4.5.1 | 3.1.1 - 3.1.2 | 8 | 2.12 | 8.\*, 9.\* |
3031
| 4.5.0 | 3.1.1 - 3.1.2 | 8 | 2.12 | 8.\*, 9.\* |
3132
| 4.4.2 | 3.1.1 - 3.1.2 | 8 | 2.12 | 8.\*, 9.\* |
@@ -43,11 +44,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
4344
### Download
4445

4546
You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 8 from Maven:
46-
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.5.1`
47+
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.5.2`
4748

4849
You can also integrate against Cosmos DB Spark Connector in your SBT project:
4950
```scala
50-
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.5.1"
51+
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.5.2"
5152
```
5253

5354
Cosmos DB Spark Connector is available on [Maven Central Repo](https://search.maven.org/search?q=g:com.azure.cosmos.spark).

sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.azure.cosmos.spark</groupId>
1414
<artifactId>azure-cosmos-spark_3-1_2-12</artifactId>
15-
<version>4.6.0-beta.1</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
15+
<version>4.5.2</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
1616
<packaging>jar</packaging>
1717
<name>OLTP Spark Connector for Azure Cosmos DB SQL API</name>
1818
<description>OLTP Spark Connector for Azure Cosmos DB SQL API</description>
@@ -64,7 +64,7 @@
6464
<dependency>
6565
<groupId>com.azure</groupId>
6666
<artifactId>azure-cosmos</artifactId>
67-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
67+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
6868
</dependency>
6969
<dependency>
7070
<groupId>org.scala-lang.modules</groupId>

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Release History
22

3-
### 4.24.0-beta.1 (Unreleased)
3+
### 4.24.0-snapshot.2 (Unreleased)
44

55
#### Features Added
66

sdk/cosmos/azure-cosmos/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Licensed under the MIT License.
1313

1414
<groupId>com.azure</groupId>
1515
<artifactId>azure-cosmos</artifactId>
16-
<version>4.24.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
16+
<version>4.24.0-snapshot.2</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
1717
<name>Microsoft Azure SDK for SQL API of Azure Cosmos DB Service</name>
1818
<description>This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API</description>
1919
<packaging>jar</packaging>

0 commit comments

Comments
 (0)