chia7712 commented on code in PR #24375:
URL: https://github.com/apache/kafka/pull/24375#discussion_r4684894091


##########
tests/kafkatest/services/performance/consumer_performance.py:
##########
@@ -80,6 +81,12 @@ def __init__(self, context, num_nodes, kafka, topic, 
messages, version=DEV_BRANC
         for node in self.nodes:
             node.version = version
 
+    def java_class_name(self):

Review Comment:
   I'm thinking we should check the version based on the node. The 
`java_class_name` is used when executing the command on the node, so relying on 
the node version is more accurate. For example:
   ```
   
       def stop_node(self, node):
           node.account.kill_java_processes(self.java_class_name(), 
clean_shutdown=True, allow_fail=True)
   
           stopped = self.wait_node(node, timeout_sec=self.stop_timeout_sec)
           assert stopped, "Node %s: did not stop within the specified timeout 
of %s seconds" % \
                           (str(node.account), str(self.stop_timeout_sec))
   
       def clean_node(self, node):
           node.account.kill_java_processes(self.java_class_name(), 
clean_shutdown=False, allow_fail=True)
           node.account.ssh("rm -rf -- %s" % self.root, allow_fail=False)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to