-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: binlogreplication: Add Session{{Begin,End}Command,End} lifecycle …
…callbacks to the replica controller execution context session. This makes small clean ups to the lifecycle around replica applier and the ownership and lifecycle of the mysql.Conn read connection. This PR also includes some changes to slightly improve the performance and reliability of the tests when running them locally. In particular, some of the changes include: 1) Since `go run ./cmd/dolt` takes about four seconds to validate the existing cached build on my laptop, we just go ahead and use a cached build everywhere. 2) We use t.Log{f,} instead of fmt.Prin.. to improve the ergonomics of test running and getting output from a failure in particular. 3) We try to minimize global process state changes like unnecessary `os.Chdir` calls, since it would be nice to parallelize these tests eventually. 4) We get rid of the unused and seemingly unnecessary --socket= argument to Dolt, where we had to use a directory not corresponding to $TMPDIR, for example, because max pathlength on a sun_path on MacOS is 104 characters or whatever.
- Loading branch information
Showing
7 changed files
with
199 additions
and
170 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
Oops, something went wrong.