-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-13231; TransactionalMessageCopier.start_node
should wait until the process if fully started
#11264
Conversation
…l the process if fully started
Transactions system tests: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/4663/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -159,12 +159,16 @@ def pids(self, node): | |||
def alive(self, node): | |||
return len(self.pids(node)) > 0 | |||
|
|||
def start_node(self, node): | |||
BackgroundThreadService.start_node(self, node) | |||
wait_until(lambda: self.alive(node), timeout_sec=60, err_msg="Message Copier failed to start") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding node
to these error messages?
@hachikuji updated the PR to add the node to the error message. |
New run to validate: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/4665/ |
…l the process if fully started (#11264) This patch ensures that the transaction message copier is fully started in `start_node`. Without this, it is possible that `stop_node` is called before the process is started which results in not stopping it at all. Reviewers: Jason Gustafson <jason@confluent.io>
…l the process if fully started (#11264) This patch ensures that the transaction message copier is fully started in `start_node`. Without this, it is possible that `stop_node` is called before the process is started which results in not stopping it at all. Reviewers: Jason Gustafson <jason@confluent.io>
Merged to trunk, 3.0 and 2.8. |
…l the process if fully started (apache#11264) This patch ensures that the transaction message copier is fully started in `start_node`. Without this, it is possible that `stop_node` is called before the process is started which results in not stopping it at all. Reviewers: Jason Gustafson <jason@confluent.io>
Committer Checklist (excluded from commit message)