-
Notifications
You must be signed in to change notification settings - Fork 956
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 in datastore mode does not export on exit #7883
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
To add some context to this issue, my company is based on ndb which is a google official client library for Google Cloud Datastore. We've been using the legacy datastore emulator for local testing before deploying to pre-production and production projects. Data persistence between runs is crucial for our testing process, and I wasn't able to achieve with the firestore emulator. I've spent some time reading the docs and trying to get the emulator to persist data, but I also may have missed something.. Thank you in advance for your time and help! |
Hey @Nathanmalnoury, sorry to hear you encountered this issue and thanks for the thorough report. I appreciate you taking the time to put together an mcve! I was able to reproduce the behavior you mentioned, I'll raise this to our engineering team so that they can take a look. As a temporary workaround, you could try using Import entities into the emulator and Export entities in the emulator to import/export data into/in the emulators. |
Same issue, the data is not persisted, I don't see anything in the output dir. Was also previously using legacy datastore emulator, but I persisted the data in a different directory. Ubuntu 22.04.5 LTS
|
Hey all, quick question to help us debug this issue - does the exported data show up if you run |
I just installed firebase CLI for testing purpose. |
[REQUIRED] Environment info
firebase-tools:
I'm using the
gcloud
CLI :Platform:
[REQUIRED] Test case
https://github.com/Nathanmalnoury/repro-firestore-emulator-datastore-mode-persistence
[REQUIRED] Steps to reproduce
Included in test repo
[REQUIRED] Expected behavior
I would expect to see saved data in my configured "--export-on-exit" folder, to then be able to import them on the next start via
--import-data
.[REQUIRED] Actual behavior
It stays empty when interrupting the emulator using
Ctrl + C
.The text was updated successfully, but these errors were encountered: