Azure / azure-cosmosdb-spark

Apache Spark Connector for Azure Cosmos DB
MIT License
201 stars 120 forks source link

Documentation around OCC (optimistic concurrency control) for this library #456

Open cvraman opened 3 years ago

cvraman commented 3 years ago

I saw a blog post about OCC using .NET code, where the same cosmos document is being updated by a bulk process and individual document update concurrently. https://devblogs.microsoft.com/cosmosdb/bulk-updates-with-optimistic-concurrency-control/

I understood that if the etag check fails, OCC will kick in and the .NET SDK will throw exception.

Will up-serting a document through this library have the same behavior ? Does this library support OCC ?