Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.azure.spring.data.cosmos.exception.CosmosAccessException","description":"Failed to upsert item #44165

Open
1 of 3 tasks
yanamalanagaraju opened this issue Feb 12, 2025 · 6 comments
Assignees
Labels
azure-spring-cosmos Spring cosmos related issues. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@yanamalanagaraju
Copy link

yanamalanagaraju commented Feb 12, 2025

Describe the bug
Hello ,
I'm testing my application in JMeter to check application performance. When i put load on my application getting the below issue.

Configuration:
Spring boot 3.3.3
Intellj
Cosmos database

Exception or Stack Trace

{"code":500,"message":"Failed to upsert item","exception":{"element":"com.azure.spring.data.cosmos.exception.CosmosAccessException","description":"Failed to upsert item"},"errorsInfo":[{"errorCode":"500-CosmosAccessException","errorDescription":"Failed to upsert item","displayMessage":null}]}

To Reproduce
Only we can produce with help of jmeter.

Code Snippet
Add the code snippet that causes the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

Image

Setup (please complete the following information):

  • IDE: [e.g. IntelliJ
  • Library/Libraries: e.g. com.azure:azure-core:1
  • Java version: 17
  • App Server/Environment: Tomcat
  • Frameworks: Spring Boot

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 12, 2025
@joshfree joshfree added Cosmos azure-spring-cosmos Spring cosmos related issues. labels Feb 12, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 12, 2025
@joshfree
Copy link
Member

@yanamalanagaraju someone from the Cosmos SDK team will follow up with you shortly. //cc @kushagraThapar

@kushagraThapar
Copy link
Member

Hey @yanamalanagaraju thanks for creating this issue, to me it sounds like an internal server error because of the status code 500. Are you seeing this issue regularly? or one off?
@trande4884 can you please help here, thanks!

@yanamalanagaraju
Copy link
Author

Hey @kushagraThapar, thanks for your response. This issue is occurring daily, but it happens intermittently. Could you please assist in identifying the root cause and potential solutions? Thank you!

@kushagraThapar
Copy link
Member

@yanamalanagaraju - I will recommend enabling the diagnostics to see what's actually the root cause of the error. You can enable the diagnostics handler on your client level to debug this further. https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/troubleshoot-java-sdk-v4?tabs=sync#logging-the-diagnostics
This article also shows in detail on how to enable them - https://learn.microsoft.com/en-us/java/api/overview/azure/spring-data-cosmos-readme?view=azure-java-stable#setup-configuration-class

@trande4884 trande4884 self-assigned this Feb 12, 2025
@trande4884
Copy link
Member

@yanamalanagaraju based on your screenshots this is only happening on 0.02% of calls, is this accurate that it is that few of calls having the 500 error? Are you seeing any issues with your application or do you just find a few errors with JMeter? For example are you having items that don't end up getting upserted?

@yanamalanagaraju
Copy link
Author

yanamalanagaraju commented Feb 13, 2025

@trande4884 This issue is occurring only in JMeter when i keep the load on application, if we verify application logs getting the below issue .

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring-cosmos Spring cosmos related issues. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants