-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG] Error while creating Azure cosmos documents in batches through Java SDK version 4.28.0 #48396
Copy link
Copy link
Open
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
We have integrated azure-cosmos SDK version 4.28.0 in our Spring Boot app version 2.7.2 which running on Java 11. This program creates Cosmos documents in batches and it was working great from day 1 of integration back in Dec 2022. All of a sudden from the last 3 days, it started creating a partial set of documents in the batches (Eg. Only 558 documents created in a 1000 documents batch) we havent seen this error before in the last 3+ years
ERROR log: pki 0 failed to import mini-batch. Exception was Missing partition key header for point operation ActivityId: 2c4e15ec-4531-4d04-9fbf-58722c93ee5d, Windows/10.0.20348 cosmos-netstandard-sdk/3.18.0, StatusCode: BadRequest. Status code was 400
Exception or Stack Trace
pki 0 failed to import mini-batch. Exception was Missing partition key header for point operation ActivityId: 2c4e15ec-4531-4d04-9fbf-58722c93ee5d, Windows/10.0.20348 cosmos-netstandard-sdk/3.18.0, StatusCode: BadRequest. Status code was 400
Sample Code:
Spring boot version - 2.7.2
Azure Cosmos SDK - 4.28.0
Java 11