forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli/demo: prevent a call to os.Exit in the license goroutine
Prior to this patch, the async goroutine responsible for license acquisition was also taking over the responsibility to call os.Exit. This was sad because it meant that in case license acquisition failed, the temporary files created for the demo cluster were not cleaned up. This patch repairs that by bringing error handling back into the main goroutine. (It's still possible for demo to leave stray files behind - see cockroachdb#46988 - and that will need a separate patch.) Release note (bug fix): `cockroach demo` now properly cleans up its temporary files if the background license acquisition fails.
- Loading branch information
Showing
3 changed files
with
39 additions
and
21 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