Skip to content

Firestore: Disable bloom filter integration tests when using Firestore emulator #7463

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 2 commits into from
Jul 18, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Jul 15, 2023

The Firestore emulator does not (as of July 14, 2023) send an existence filter when a query is resumed by clients. As a result the client fails to delete documents that were deleted since the query was last run. The emulator will soon be fixed to send the existence filter (Googlers see b/270731363).

There are two bloom filter integration tests, the first of which tried to do as much as it could when running against the emulator and completing successfully if it got that far. That test, though, didn't really validate anything and by it passing it incorrectly implied that the bloom filter logic was validated. This test is now completely skipped when running against the Firestore emulator, which also makes the test simpler and easier to maintain.

These two bloom filter integration tests also mentioned the bug b/270731363 in their comments. These comments have now been updated to instead mention b/291365820, which is the new issue that tracks adding bloom filter support to the Firestore emulator.

Note to reviewer: set your diff tool to ignore whitespace to make reviewing easier; some indentation changes caused a large number of lines to be affected with whitespace-only changes.

The corresponding PRs in the other SDKs are firebase/firebase-android-sdk#5168 and firebase/firebase-ios-sdk#11555.

@dconeybe dconeybe requested a review from a team as a code owner July 15, 2023 03:09
@dconeybe dconeybe self-assigned this Jul 15, 2023
@dconeybe dconeybe requested a review from a team as a code owner July 15, 2023 03:09
@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2023

⚠️ No Changeset found

Latest commit: 1133c8f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2023

Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

@dconeybe dconeybe merged commit cd15480 into master Jul 18, 2023
@dconeybe dconeybe deleted the dconeybe/BloomFilterBug270731363To291365820 branch July 18, 2023 13:49
@firebase firebase locked and limited conversation to collaborators Aug 18, 2023
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