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

[BUG] CosmosRepository.saveAll() logs the error in the log file but does not return an exception to the calling Application #43702

Open
3 tasks
trande4884 opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@trande4884
Copy link
Member

Describe the bug
The customer is encountering a 403 Forbidden error when attempting to write data to a specific partition key (MACLIENT8) due to the partition key size limit. Unfortunately, this error is not being communicated to the calling application, as only the 403 status code is available without the sub-status code '1014'.

Exception or Stack Trace
The is the Error message seen in the log.

14:02:47.938

process-trans-job-spec-lb-psr-01

[process-trans-job-spec-lb-psr-01][ERROR] HandleTransactionalBatchOperationResult - Fail, PKRange 8, Response Status Code 403, Operation Status Code 403, ItemOperation[Type: UPSERT, PK: ['MACLIENT8'], id: null], Context: BulkExecutor-415[n/a] Thread[Name: bulk-executor-bounded-elastic-11,Group: main, isDaemon: true, Id: 208]

14:02:47.940

process-trans-job-spec-lb-psr-01

[process-trans-job-spec-lb-psr-01][ERROR] HandleTransactionalBatchOperationResult - Fail, PKRange 8, Response Status Code 403, Operation Status Code 403, ItemOperation[Type: UPSERT, PK: ['MACLIENT8'], id: null], Context: BulkExecutor-415[n/a] Thread[Name: bulk-executor-bounded-elastic-11,Group: main, isDaemon: true, Id: 208]

To Reproduce
Steps to reproduce the behavior:

Code Snippet
Add the code snippet that causes the issue.

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

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • OS: [e.g. iOS]
  • IDE: [e.g. IntelliJ]
  • Library/Libraries: [e.g. com.azure:azure-core:1.16.0 (groupId:artifactId:version)]
  • Java version: [e.g. 8]
  • App Server/Environment: [e.g. Tomcat, WildFly, Azure Function, Apache Spark, Databricks, IDE plugin or anything special]
  • Frameworks: [e.g. Spring Boot, Micronaut, Quarkus, etc]

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

  • verbose dependency tree (mvn dependency:tree -Dverbose)
  • exception message, full stack trace, and any available logs

Additional context
Add any other context about the problem here.

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
@trande4884 trande4884 self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant