Skip to content

Commit

Permalink
Cosmos release 2024-04-26 (#39938)
Browse files Browse the repository at this point in the history
* Changing new custom seiriaization API based on API review feedback

* Update CHANGELOG.md

* Update sdk/cosmos/azure-cosmos/CHANGELOG.md

Co-authored-by: Tomas Varon <70857381+tvaron3@users.noreply.github.com>

* Reacting to code review feedback

* Update CosmosEncryptionItemSerializerTest.java

* Update CosmosItemRequestOptions.java

* Update NonIdempotentWriteRetryOptions.java

* Cosmos Release 2024-04-26

* Update NonIdempotentWriteRetryOptions.java

* Fixing test failure

* Update sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>

* Updating release date

---------

Co-authored-by: Tomas Varon <70857381+tvaron3@users.noreply.github.com>
Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
  • Loading branch information
3 people committed Apr 28, 2024
1 parent 3eec0a2 commit da40b57
Show file tree
Hide file tree
Showing 28 changed files with 94 additions and 99 deletions.
14 changes: 7 additions & 7 deletions eng/versioning/version_client.txt
Expand Up @@ -101,16 +101,16 @@ com.azure:azure-core-test;1.24.2;1.25.0-beta.1
com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.45;1.0.0-beta.46
com.azure:azure-core-tracing-opentelemetry-samples;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core-version-tests;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-cosmos;4.58.0;4.59.0-beta.1
com.azure:azure-cosmos;4.58.0;4.59.0
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3_2-12;1.0.0-beta.1;1.0.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.29.0;4.30.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.29.0;4.30.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.29.0;4.30.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12;4.29.0;4.30.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-5_2-12;4.29.0;4.30.0-beta.1
com.azure:azure-cosmos-encryption;2.10.0;2.11.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.29.0;4.30.0
com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.29.0;4.30.0
com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.29.0;4.30.0
com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12;4.29.0;4.30.0
com.azure.cosmos.spark:azure-cosmos-spark_3-5_2-12;4.29.0;4.30.0
com.azure:azure-cosmos-encryption;2.10.0;2.11.0
com.azure:azure-cosmos-test;1.0.0-beta.6;1.0.0-beta.7
com.azure:azure-cosmos-tests;1.0.0-beta.1;1.0.0-beta.1
com.azure.cosmos.kafka:azure-cosmos-kafka-connect;1.0.0-beta.1;1.0.0-beta.2
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos-benchmark/pom.xml
Expand Up @@ -51,13 +51,13 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.59.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.59.0</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos-encryption</artifactId>
<version>2.11.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos-encryption;current} -->
<version>2.11.0</version> <!-- {x-version-update;com.azure:azure-cosmos-encryption;current} -->
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml
Expand Up @@ -50,7 +50,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.59.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.59.0</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
Expand Down
10 changes: 3 additions & 7 deletions sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md
@@ -1,16 +1,12 @@
## Release History

### 2.11.0-beta.1 (Unreleased)
### 2.11.0 (2024-04-27)
#### Other Changes
* Updated `azure-cosmos` to version `4.59.0`.

#### Features Added
* Added public APIs `getCustomItemSerializer` and `setCustomItemSerializer` to allow customers to specify custom payload transformations or serialization settings. - See [PR 38997](https://github.com/Azure/azure-sdk-for-java/pull/38997)

#### Breaking Changes

#### Bugs Fixed

#### Other Changes

### 2.10.0 (2024-04-16)

#### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-encryption/README.md
Expand Up @@ -12,7 +12,7 @@ The Azure Cosmos Encryption Plugin is used for encrypting data with a user-provi
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos-encryption</artifactId>
<version>2.10.0</version>
<version>2.11.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos-encryption/pom.xml
Expand Up @@ -13,7 +13,7 @@ Licensed under the MIT License.

<groupId>com.azure</groupId>
<artifactId>azure-cosmos-encryption</artifactId>
<version>2.11.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos-encryption;current} -->
<version>2.11.0</version> <!-- {x-version-update;com.azure:azure-cosmos-encryption;current} -->
<name>Encryption Plugin for Azure Cosmos DB SDK</name>
<description>This Package contains Encryption Plugin for Microsoft Azure Cosmos SDK</description>
<packaging>jar</packaging>
Expand Down Expand Up @@ -57,7 +57,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.59.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.59.0</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-kafka-connect/pom.xml
Expand Up @@ -82,7 +82,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.59.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.59.0</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<!-- Added this provided dependency to include necessary annotations used by "reactor-core".
Expand Down
8 changes: 1 addition & 7 deletions sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md
@@ -1,16 +1,10 @@
## Release History

### 4.30.0-beta.1 (Unreleased)
### 4.30.0 (2024-04-27)

#### Features Added
* Added capability to use (and enforce) native netty transport. The native transport is more efficient - esepcially when the number of TCP connections being used is high. - See [PR 39834](https://github.com/Azure/azure-sdk-for-java/pull/39834)

#### Breaking Changes

#### Bugs Fixed

#### Other Changes

### 4.29.0 (2024-04-16)

#### Bugs Fixed
Expand Down
16 changes: 11 additions & 5 deletions sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md
Expand Up @@ -29,6 +29,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-1_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|--------------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.29.0 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.28.4 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.28.3 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* |
Expand Down Expand Up @@ -93,6 +94,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-2_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.29.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.28.4 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
Expand Down Expand Up @@ -142,6 +144,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-3_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.29.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.28.4 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
Expand Down Expand Up @@ -173,6 +176,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-4_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.4.0 | [8, 11] | 2.12 | 13.\* |
| 4.29.0 | 3.4.0 | [8, 11] | 2.12 | 13.\* |
| 4.28.4 | 3.4.0 | [8, 11] | 2.12 | 13.\* |
| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.\* |
Expand All @@ -194,20 +198,22 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
| 4.21.0 | 3.4.0 | [8, 11] | 2.12 | 13.\* |

#### azure-cosmos-spark_3-5_2-12
| Connector | Supported Spark Versions | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
|---------------|--------------------------|----------------------| ----------------------- |-------------------------------|
| 4.29.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |
| Connector | Supported Spark Versions | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |
| 4.29.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |

Note: Java 8 prior to version 8u371 support is deprecated as of Spark 3.5.0. When using the Scala API, it is necessary for applications
to use the same version of Scala that Spark was compiled for.

### Download

You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 8 from Maven:
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.29.0`
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.30.0`

You can also integrate against Cosmos DB Spark Connector in your SBT project:
```scala
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.29.0"
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.30.0"
```

Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark).
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.azure.cosmos.spark</groupId>
<artifactId>azure-cosmos-spark_3-1_2-12</artifactId>
<version>4.30.0-beta.1</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
<version>4.30.0</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
<packaging>jar</packaging>
<url>https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-1_2-12</url>
<name>OLTP Spark 3.1 Connector for Azure Cosmos DB SQL API</name>
Expand Down
8 changes: 1 addition & 7 deletions sdk/cosmos/azure-cosmos-spark_3-2_2-12/CHANGELOG.md
@@ -1,16 +1,10 @@
## Release History

### 4.30.0-beta.1 (Unreleased)
### 4.30.0 (2024-04-27)

#### Features Added
* Added capability to use (and enforce) native netty transport. The native transport is more efficient - esepcially when the number of TCP connections being used is high. - See [PR 39834](https://github.com/Azure/azure-sdk-for-java/pull/39834)

#### Breaking Changes

#### Bugs Fixed

#### Other Changes

### 4.29.0 (2024-04-16)

#### Bugs Fixed
Expand Down
16 changes: 11 additions & 5 deletions sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md
Expand Up @@ -28,6 +28,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-2_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.29.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.28.4 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* |
Expand Down Expand Up @@ -77,6 +78,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-3_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.29.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.28.4 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* |
Expand Down Expand Up @@ -108,6 +110,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-1_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|--------------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.29.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.28.4 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* |
| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* |
Expand Down Expand Up @@ -172,6 +175,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
#### azure-cosmos-spark_3-4_2-12
| Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.4.0 | [8, 11] | 2.12 | 13.* |
| 4.29.0 | 3.4.0 | [8, 11] | 2.12 | 13.* |
| 4.28.4 | 3.4.0 | [8, 11] | 2.12 | 13.* |
| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.* |
Expand All @@ -192,20 +196,22 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
| 4.21.0 | 3.4.0 | [8, 11] | 2.12 | 13.* |

#### azure-cosmos-spark_3-5_2-12
| Connector | Supported Spark Versions | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
|---------------|--------------------------|----------------------| ----------------------- |-------------------------------|
| 4.29.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |
| Connector | Supported Spark Versions | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
|-----------|--------------------------|------------------------|--------------------------|-------------------------------|
| 4.30.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |
| 4.29.0 | 3.5.0 | [8, 11] | 2.12 | 14.* |

Note: Java 8 prior to version 8u371 support is deprecated as of Spark 3.5.0. When using the Scala API, it is necessary for applications
to use the same version of Scala that Spark was compiled for.

### Download

You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 10 from Maven:
`com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.29.0`
`com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.30.0`

You can also integrate against Cosmos DB Spark Connector in your SBT project:
```scala
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-2_2-12" % "4.29.0"
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-2_2-12" % "4.30.0"
```

Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark).
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.azure.cosmos.spark</groupId>
<artifactId>azure-cosmos-spark_3-2_2-12</artifactId>
<version>4.30.0-beta.1</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;current} -->
<version>4.30.0</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;current} -->
<packaging>jar</packaging>
<url>https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-2_2-12</url>
<name>OLTP Spark 3.2 Connector for Azure Cosmos DB SQL API</name>
Expand Down
8 changes: 1 addition & 7 deletions sdk/cosmos/azure-cosmos-spark_3-3_2-12/CHANGELOG.md
@@ -1,16 +1,10 @@
## Release History

### 4.30.0-beta.1 (Unreleased)
### 4.30.0 (2024-04-27)

#### Features Added
* Added capability to use (and enforce) native netty transport. The native transport is more efficient - esepcially when the number of TCP connections being used is high. - See [PR 39834](https://github.com/Azure/azure-sdk-for-java/pull/39834)

#### Breaking Changes

#### Bugs Fixed

#### Other Changes

### 4.29.0 (2024-04-16)

#### Bugs Fixed
Expand Down

0 comments on commit da40b57

Please sign in to comment.