-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hard to break these apart as they are all kinda entangled. 1) We know that `TestReadOwnWritesGuarantee` occasionally fails (#478) but the output of that test is mangled with the output from the previous test. The mangling is caused by unclean shutdown. As those resources get cleaned up, the output gets printed all over the place. In tests, we don't need soft shutdown, so this PR introduces a hard shutdown to speed up tests. 2) The sync worker was leaking connections 3) Recv() is blocking and does not listen to ctx Done. A separate mechanism has to be introduced to handle shutdowns cleanly. This is the same pattern that we use in `nodeCursorTracker` 4) Create DBs with the name of the test in them. Makes SQL debugging easier. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Configurable timeout settings now enable a graceful shutdown process to ensure active operations complete reliably. - **Refactor** - Enhanced shutdown logic with timeout parameters for improved control over server shutdown processes. - Optimized background processing with non-blocking error handling for improved responsiveness. - **Tests** - Enhanced testing utilities with refined resource cleanup and dynamic naming to bolster test robustness. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
7 changed files
with
96 additions
and
43 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
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
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