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

Fix out-of-order execution for enqueueRetryable #3919

Merged
merged 2 commits into from
Oct 12, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

We currently do follow the global order of AsyncQueue operations when we insert items into the retryable queue. This seems to allow operations that inserted into the retryable queue to skip ahead of items that are inserted into the regular queue. This PR ties the insertion of new items to the retryable queue to the order in which all items are enqueue.

I still am not able to reproduce the original failure in a unit test (tried various delays, various order of operations, scheduling operations while other operations are running), but this code change addresses the consistent Integration tests failures in a follow-up PR.

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2020

🦋 Changeset detected

Latest commit: 00f6cd9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/rules-unit-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also need a patch for the firebase-wide package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that we don't need to for a patch release, since every release is at least a minimum patch version bump.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Oct 10, 2020
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Oct 10, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (88e1f88) Head (c2dff5e) Diff
    browser 250 kB 250 kB -3 B (-0.0%)
    esm2017 198 kB 198 kB +2 B (+0.0%)
    main 485 kB 485 kB +1 B (+0.0%)
    module 247 kB 247 kB -3 B (-0.0%)
    react-native 198 kB 198 kB +2 B (+0.0%)
  • @firebase/firestore/exp

    Type Base (88e1f88) Head (c2dff5e) Diff
    browser 190 kB 190 kB +2 B (+0.0%)
    main 477 kB 477 kB +1 B (+0.0%)
    module 190 kB 190 kB +2 B (+0.0%)
    react-native 190 kB 190 kB +2 B (+0.0%)
  • @firebase/firestore/lite

    Type Base (88e1f88) Head (c2dff5e) Diff
    browser 63.6 kB 63.6 kB +2 B (+0.0%)
    main 140 kB 140 kB +1 B (+0.0%)
    module 63.6 kB 63.6 kB +2 B (+0.0%)
    react-native 63.8 kB 63.8 kB +2 B (+0.0%)
  • @firebase/firestore/memory

    Type Base (88e1f88) Head (c2dff5e) Diff
    browser 187 kB 187 kB -3 B (-0.0%)
    esm2017 149 kB 149 kB +2 B (+0.0%)
    main 358 kB 358 kB +1 B (+0.0%)
    module 185 kB 185 kB -3 B (-0.0%)
    react-native 149 kB 149 kB +2 B (+0.0%)
  • firebase

    Type Base (88e1f88) Head (c2dff5e) Diff
    firebase-firestore.js 287 kB 287 kB -3 B (-0.0%)
    firebase-firestore.memory.js 226 kB 226 kB -3 B (-0.0%)
    firebase.js 829 kB 829 kB -3 B (-0.0%)

Test Logs

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Oct 10, 2020

Size Analysis Report

Affected Products

No changes between base commit (88e1f88) and head commit (c2dff5e).

Test Logs

@schmidt-sebastian schmidt-sebastian merged commit 2bea0a3 into master Oct 12, 2020
@google-oss-bot google-oss-bot mentioned this pull request Oct 13, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/outoforderexecution branch November 9, 2020 22:36
@firebase firebase locked and limited conversation to collaborators Nov 12, 2020
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