You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by jg...@apache.org on 2017/06/12 22:57:26 UTC
kafka git commit: KAFKA-5437;
Always send a sig_kill when cleaning the message copier
Repository: kafka
Updated Branches:
refs/heads/trunk 43e935a63 -> 0f3f2f56a
KAFKA-5437; Always send a sig_kill when cleaning the message copier
When the message copier hangs (like when there is a bug in the client), it ignores the sigterm and doesn't shut down. this leaves the cluster in an unclean state causing future tests to fail.
In this patch we always send SIGKILL when cleaning the node if the process isn't already dead. This is consistent with the other services.
Author: Apurva Mehta <ap...@confluent.io>
Reviewers: Jason Gustafson <ja...@confluent.io>
Closes #3308 from apurvam/KAFKA-5437-force-kill-message-copier-on-cleanup
Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/0f3f2f56
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/0f3f2f56
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/0f3f2f56
Branch: refs/heads/trunk
Commit: 0f3f2f56a2d013e6ff723155607b2f71b20db620
Parents: 43e935a
Author: Apurva Mehta <ap...@confluent.io>
Authored: Mon Jun 12 15:57:01 2017 -0700
Committer: Jason Gustafson <ja...@confluent.io>
Committed: Mon Jun 12 15:57:01 2017 -0700
----------------------------------------------------------------------
tests/kafkatest/services/transactional_message_copier.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kafka/blob/0f3f2f56/tests/kafkatest/services/transactional_message_copier.py
----------------------------------------------------------------------
diff --git a/tests/kafkatest/services/transactional_message_copier.py b/tests/kafkatest/services/transactional_message_copier.py
index 14bafa7..01d124b 100644
--- a/tests/kafkatest/services/transactional_message_copier.py
+++ b/tests/kafkatest/services/transactional_message_copier.py
@@ -123,8 +123,8 @@ class TransactionalMessageCopier(KafkaPathResolverMixin, BackgroundThreadService
return cmd
- def clean_node(self, node, clean_shutdown=True):
- self.kill_node(node, clean_shutdown)
+ def clean_node(self, node):
+ self.kill_node(node, clean_shutdown=False)
node.account.ssh("rm -rf " + self.PERSISTENT_ROOT, allow_fail=False)
self.security_config.clean_node(node)