Which service(blob, file, queue) does this issue concern?
Tabls
Which version of the SDK was used? Please provide the output of pip freeze.
azure-cosmosdb-table==1.0.5
What problem was encountered?
When you try to insert the same items (that already exist) in a batch operation, it is trying to do retryies (even though it's not transient). The reason is that the batch operations REST API is returning a 202 code (ACCEPTED), but the exceptions are packaged inside the response body. The response body exception is not taken into consideration when chosing retry policy, so it's using the 202 code (ACCEPTED) from the batch response, and not the 409 code that is packaged inside the response body
Which service(blob, file, queue) does this issue concern?
Tabls
Which version of the SDK was used? Please provide the output of
pip freeze
.azure-cosmosdb-table==1.0.5
What problem was encountered?
When you try to insert the same items (that already exist) in a batch operation, it is trying to do retryies (even though it's not transient). The reason is that the batch operations REST API is returning a 202 code (ACCEPTED), but the exceptions are packaged inside the response body. The response body exception is not taken into consideration when chosing retry policy, so it's using the 202 code (ACCEPTED) from the batch response, and not the 409 code that is packaged inside the response body
Have you found a mitigation/solution?
For now we do something like this:
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.