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

DB transaction failure causes storage.Panic #49

Closed
hyangah opened this issue Oct 25, 2024 · 1 comment
Closed

DB transaction failure causes storage.Panic #49

hyangah opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hyangah
Copy link
Contributor

hyangah commented Oct 25, 2024

Error details:

firestore transaction" err="rpc error: code = Aborted desc = Aborted due to cross-transaction contention. This occurs when multiple transactions attempt to access the same data, requiring Firestore to abort at least one in order to enforce serializability.

at golang.org/x/oscar/internal/storage.Panic ( /src/internal/storage/db.go:156 )
at golang.org/x/oscar/internal/gcp/firestore.(*fstore).Panic ( /src/internal/gcp/firestore/firestore.go:86 )
at golang.org/x/oscar/internal/gcp/firestore.(*fstore).runTransaction ( /src/internal/gcp/firestore/firestore.go:170 )
at golang.org/x/oscar/internal/gcp/firestore.(*DB).lockTx ( /src/internal/gcp/firestore/db.go:147 )
at golang.org/x/oscar/internal/gcp/firestore.(*DB).lock ( /src/internal/gcp/firestore/db.go:127 )
at golang.org/x/oscar/internal/gcp/firestore.(*DB).waitForLock ( /src/internal/gcp/firestore/db.go:99 )
at golang.org/x/oscar/internal/gcp/firestore.(*DB).Lock ( /src/internal/gcp/firestore/db.go:77 )
at main.(*Gaby).serveHTTP.func4 ( /src/internal/gaby/main.go:322 )
@hyangah hyangah added the bug Something isn't working label Nov 19, 2024
@hyangah
Copy link
Contributor Author

hyangah commented Nov 21, 2024

This is working as intended. If this happens a lot, we can increase the # of retries.

@hyangah hyangah closed this as completed Nov 21, 2024
@hyangah hyangah closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant