diff --git a/tests/kafkatest/services/streams.py b/tests/kafkatest/services/streams.py index 72847f63287..f7f8828b4cf 100644 --- a/tests/kafkatest/services/streams.py +++ b/tests/kafkatest/services/streams.py @@ -17,6 +17,7 @@ import os.path import signal import streams_property import consumer_property +from ducktape.cluster.remoteaccount import RemoteCommandError from ducktape.services.service import Service from ducktape.utils.util import wait_until from kafkatest.directory_layout.kafka_path import KafkaPathResolverMixin @@ -215,8 +216,10 @@ class StreamsTestBaseService(KafkaPathResolverMixin, JmxMixin, Service): def pids(self, node): try: - return [pid for pid in node.account.ssh_capture("cat " + self.PID_FILE, callback=int)] - except: + pids = [pid for pid in node.account.ssh_capture("cat " + self.PID_FILE, callback=str)] + return [int(pid) for pid in pids] + except Exception, exception: + self.logger.debug(str(exception)) return [] def stop_nodes(self, clean_shutdown=True):