Notify waiting channels on completed transaction, not just the watermark by misalcedo · Pull Request #1531 · github/gh-ost
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 1.4k
Conversation
Description
This PR extends #1454 to notify waiting transactions not just when the watermark increases, but also when the transaction is completed.
In case this PR introduced Go code changes:
- contributed code is using same conventions as original code
-
script/cibuildreturns with no formatting errors, build errors or unit test errors.
misalcedo
marked this pull request as ready for review
Copilot AI review requested due to automatic review settings
April 10, 2025 15:32Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ensures that waiting transactions are notified not only when the watermark increases but also when a transaction is completed. Key changes include:
- Extending the notification logic in coordinator.go to trigger on transaction completion.
- Updating the test suite in coordinator_test.go to simulate concurrent transactions using errgroup and randomize the number of inserts per transaction.
- Configuring additional connection limits in the test setup to support increased concurrency.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| go/logic/coordinator_test.go | Updated test logic for concurrent transaction simulation and setup. |
| go/logic/coordinator.go | Modified notification logic to include transaction completion conditions. |
This file contains hidden or 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