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

s192 - retry if message says so #31

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

jlorper
Copy link
Member

@jlorper jlorper commented Jan 31, 2025

Fixes

my best guess:
console link

2 ideas based on these logs:

  1. the exception is wrapped in RuntimeException, so not handled
Caused by: java.lang.RuntimeException: com.google.cloud.datastore.DatastoreException: Optimstic transaction was aborted due to a conflict with another concurrent operation. 
This can occur when there are overlapping reads or writes by other transactions, 
causing contention with the current transaction. Please retry the transaction.
  1. this DatastoreException is not retryable despite what the message says
This can occur when there are overlapping reads or writes by other transactions, 
causing contention with the current transaction. Please retry the transaction., code=ABORTED

Change implications

  • breaking change to API? no
  • changes dependencies? no

@jlorper jlorper requested a review from eschultink January 31, 2025 02:28
@jlorper jlorper self-assigned this Jan 31, 2025
@eschultink eschultink merged commit f2fd2da into main Jan 31, 2025
3 checks passed
@eschultink eschultink deleted the s192-force-retry-based-on-message branch January 31, 2025 04:12
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

Successfully merging this pull request may close these issues.

2 participants