Skip to content

Treat ABORTED writes as retryable #1456

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

Merged
merged 3 commits into from
Jan 8, 2019
Merged

Treat ABORTED writes as retryable #1456

merged 3 commits into from
Jan 8, 2019

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented Jan 7, 2019

This corresponds to a server-side change that will be released for the v1 protocol only.

Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I was wondering if we needed similar handling for transaction writes, but it looks like we retry them regardless of the error code 🤔... so not an issue, I guess.

@mikelehen mikelehen assigned wilhuff and unassigned mikelehen Jan 8, 2019
Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM.

@wilhuff
Copy link
Contributor Author

wilhuff commented Jan 8, 2019

I looked at the transaction code too. While our current handling seems specious there I think addressing that is out of scope for this change.

I've addressed the test failure by adding isPermanentWriteError. It's a big/subtle enough change that it likely should be re-reviewed. In particular, I'm not super happy that handshakes on the write streams can't be classified with isPermanentWriteError but ABORTED is not transient there so I couldn't see a better solution than just documenting that. LMK if you can think of a better arrangement.

@wilhuff wilhuff merged commit 9982004 into master Jan 8, 2019
@wilhuff wilhuff deleted the wilhuff/aborted branch January 8, 2019 22:18
wilhuff added a commit to firebase/firebase-ios-sdk that referenced this pull request Jan 10, 2019
wilhuff added a commit to firebase/firebase-ios-sdk that referenced this pull request Jan 11, 2019
* Treat ABORTED writes as retryable

This is a port of firebase/firebase-js-sdk#1456.

* Regenerate spec test json
wilhuff added a commit to firebase/firebase-android-sdk that referenced this pull request Jan 11, 2019
This corresponds to a server-side change that will be released for the v1 protocol only (see b/119437764).

This is a port of firebase/firebase-js-sdk#1456.
wilhuff added a commit to firebase/firebase-android-sdk that referenced this pull request Jan 11, 2019
This corresponds to a server-side change that will be released for the v1 protocol only (see b/119437764).

This is a port of firebase/firebase-js-sdk#1456.
@firebase firebase locked and limited conversation to collaborators Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants