Skip to content

Clear the lastLimboFreeSnapshot version on existence filter mismatch #9199

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 1 commit into from
Jan 11, 2022

Conversation

schmidt-sebastian
Copy link
Contributor

This fixes a problem where the SDK receives an existence filter mismatch and clears the mapping of documents to targets, but does not receive another snapshot that also clears the snapshot version (i.e. the device went in the background and did was not able to actually process a re-run of the query).

The change that this PR makes is that we always reset the lastLimboFreeSnapshot version to 0 if we get a target mismatch.

Addresses #3249
Port of firebase/firebase-android-sdk#3267

@google-oss-bot
Copy link

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    Overall coverage changed from 87.74% (fa4c1e6) to 87.69% (d68c327) by -0.05%.

    FilenameBase (fa4c1e6)Merge (d68c327)Diff
    exception.cc73.68%23.68%-50.00%
    exception_apple.mm58.62%89.66%+31.03%
    leveldb_key.cc97.99%97.68%-0.31%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/RQgx8Qq3RI.html

@schmidt-sebastian schmidt-sebastian merged commit 2f373b6 into master Jan 11, 2022
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/lastlimbo branch January 11, 2022 21:24
@firebase firebase locked and limited conversation to collaborators Feb 11, 2022
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