-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use / recommend use of data-dir for datastore emulator #1374
Comments
When I tried to run it as-is with the current location of
when doing the Java specific thing you suggested
I ended up with the same error |
Hmm, it should do that for you automatically:
Results in:
|
So you're saying I should run the emulator with an empty temp directory and then manually copy the index file into |
ya probably. We should probably make it easier to get this setup specifically for indexes -- maybe a different flag? |
Yes I agree. It's especially painful since |
@eddavisson thoughts here? One of the reasons to require the directory is so that we can then upload the index.yaml file. But if we include index.yaml as a specific flag, we could change update/vacuum indexes to also just accept the index.yaml file. Since we've moved away from xml, there is now only one file to deal with. |
The local_db.bin file also ends up in the data directory. When we were developing the Cloud SDK CLI, we tried to target two use cases:
Does 1) capture your use case (or are you tracking index usage across tests)? |
This isn't quite handled for unit testing in the case you want to do emulator + prod integration tests. In this case not persisting the indexes caused issues because prod used one index and the emulator generated a different index. |
@pcostell The above is mostly about how to run with our own indexes, which seems like a work in progress? What about my second question? Do you think we should run the emulator tests on a regular basis or is hitting the live API on every merge to master sufficient? |
I don't think you need to run them as part of the merge -- the live API is probably better. However, integrating them with your normal testing infrastructure can make normal development iteration a lot easier. |
Good call. I'm doing to add an optional |
See discussion in googleapis#1374 for context.
@pcostell I sent a PR (#1393) to make running the emulator easier on our users.
|
Hello, As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates. My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request. Thank you! |
@pcostell moving discussion over here. I wanted to discuss two things:
The text was updated successfully, but these errors were encountered: