-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shutdown server runtime before program exit (#8313)
We don't ever terminate the server runtime in benchmark when we exit the program. This causes RocksDB running in the server runtime to try to access global state which is cleaned up during exit. This PR terminates the server runtime with a oneshot channel and then exit. Before this fix, I can reproduce the error in almost every run on my linux computer. After this PR, I did not run into any errors even after 10+ runs.
- Loading branch information
1 parent
629804d
commit 7a661d1
Showing
3 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters