kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maniku...@apache.org
Subject [kafka] branch 2.3 updated: MINOR: Use `jps` cmd to find out the pid of TransactionalMessageCopier
Date Wed, 22 May 2019 13:43:53 GMT
This is an automated email from the ASF dual-hosted git repository.

manikumar pushed a commit to branch 2.3
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.3 by this push:
     new ff46d33  MINOR: Use `jps` cmd to find out the pid of TransactionalMessageCopier
ff46d33 is described below

commit ff46d33e03be7df37b747e894876622097e50740
Author: Manikumar Reddy <manikumar.reddy@gmail.com>
AuthorDate: Wed May 22 19:12:55 2019 +0530

    MINOR: Use `jps` cmd to find out the pid of TransactionalMessageCopier
    
    Author: Manikumar Reddy <manikumar.reddy@gmail.com>
    
    Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
    
    Closes #6787 from omkreddy/transaction_test
    
    (cherry picked from commit 5ca6a2ee94c71092083c93a384faa46c9e2ade97)
    Signed-off-by: Manikumar Reddy <manikumar@confluent.io>
---
 tests/kafkatest/services/transactional_message_copier.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kafkatest/services/transactional_message_copier.py b/tests/kafkatest/services/transactional_message_copier.py
index 7e96a2c..53fffa4 100644
--- a/tests/kafkatest/services/transactional_message_copier.py
+++ b/tests/kafkatest/services/transactional_message_copier.py
@@ -135,7 +135,7 @@ class TransactionalMessageCopier(KafkaPathResolverMixin, BackgroundThreadService
 
     def pids(self, node):
         try:
-            cmd = "ps ax | grep -i TransactionalMessageCopier | grep java | grep -v grep
| awk '{print $1}'"
+            cmd = "jps | grep -i TransactionalMessageCopier | awk '{print $1}'"
             pid_arr = [pid for pid in node.account.ssh_capture(cmd, allow_fail=True, callback=int)]
             return pid_arr
         except (RemoteCommandError, ValueError) as e:


Mime
View raw message