-
Notifications
You must be signed in to change notification settings - Fork 906
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
Firestore emulator ClearData fails when deleting more than 500 documents #1468
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
Hrm. The Firestore emulator quickstart relies on the same I don't think we have enough information here to reproduce the issue. Can you provide a short, self-contained snippet that doesn't do what you expect it to? Something like
|
I have created a self contained repo that should represent the issue at hand. Should work with emulator |
I cannot get the tests in that repo to pass with any version of the emulator.
I've also tried it with |
Could you try running this test:
This examples passes for me on both |
Updated the repo with actual clear reproducability. You will see it fail on 1.6.0 and succeed on 1.5.0. https://github.com/mad-it/firestore-1468
The issue is:
|
Ah, good catch. This is probably a regression due to a related bugfix. Should be a simple fix on our end. |
Fix merged, will go out with the next release of firebase-tools. Thanks for reporting :) |
[REQUIRED] Environment info
firebase-tools:
Using NPM:
Platform:
Ubuntu 19.04
[REQUIRED] Test case
Steps to reproduce described below. The behaviour of clear data of firestore emulator changed from version
1.5.0
to1.6.0
. We have written a nice wrapper around firebase emulator to support transactions because support did not exist a long time ago in the emulator. This wrapper also clears up the data in emulator after each test.Our wrapper uses the GRPC proto to call firestore emulator. We are using
/google.firestore.emulator.v1.FirestoreEmulator/ClearData
to clear the data after each test.[REQUIRED] Steps to reproduce
output:
[REQUIRED] Expected behavior
The second test should start with a clean slate.
[REQUIRED] Actual behavior
The second test does not have a clean start due to the data still being present.
Extra information
The text was updated successfully, but these errors were encountered: