-
Notifications
You must be signed in to change notification settings - Fork 937
Firestore: query.test.ts: use LRUGC in bloom filter tests #7401
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
Conversation
…hen persistence=false
|
Size Report 1Affected ProductsNo changes between base commit (675ec3a) and merge commit (07f2420).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (675ec3a) and merge commit (07f2420).Test Logs |
const localCache = persistence | ||
? persistentLocalCache() | ||
: memoryLocalCache({ garbageCollector: memoryLruGarbageCollector() }); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ralization [no actions]
…WithMemoryLruGc [skip actions]
…Generalization' into BloomFilterTestRunsWithMemoryLruGc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Previously, Firestore's bloom filter integration test exited early when testing without persistence; however, now that LRU garbage collection is supported for memory persistence, this test can run even with memory persistence as long as LRU GC is enabled (rather than the default, eager GC).
This PR updates the integration test framework to allow tests to specify a specific persistence configuration and the
resuming a query should use bloom filter to avoid full requery
test leverages this new functionality to use LRU GC when persistence=false, allowing the entire test to run to completion in both persistence modes.