-
Notifications
You must be signed in to change notification settings - Fork 189
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
Ensure databases are re-registered when query server restarts #734
Conversation
ef8f294
to
b8b30f5
Compare
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.
Appreciate the quick fix and the test! A few minor suggestions.
a14a093
to
4d9f2a0
Compare
This commit fixes github#733. It does it by ensuring that the query server emits an event when it restarts the query server. The database manager listens for this even and properly re-registers its databases. A few caveats though: 1. Convert query restarts to using a command that includes progress. This will ensure that errors on restart are logged properly. 2. Because we want to log errors, we cannot use the vscode standard EventEmitters. They run in the next tick and therefore any errors will not be associated with this command execution. 3. Update the default cli version to run integration tests against to 2.4.2. 4. Add a new integration test that fails if databases are not re-registered.
4d9f2a0
to
2ec2f15
Compare
The integration tests were failing because of a real bug. Fixed now. I'm glad we upgraded the tests to run on 2.4.2 |
Looks good. Do you want a change note for the upgrade bugfix? |
Sure...why not... |
8b20cd5
to
faeddeb
Compare
This commit fixes #733. It does it by ensuring that the query server
emits an event when it restarts the query server. The database manager
listens for this even and properly re-registers its databases.
A few caveats though:
This will ensure that errors on restart are logged properly.
EventEmitters. They run in the next tick and therefore any errors
will not be associated with this command execution.
2.4.2.
re-registered.
Checklist
@github/docs-content-dsp
has been cc'd in all issues for UI or other user-facing changes made by this pull request.