Skip to content

Commit

Permalink
tests/services: progress %ge from FranzGoVerifiableProducer
Browse files Browse the repository at this point in the history
This is useful if a test is running longer than
you expected and you'd like to know how far through
it is without doing your own calculation of message counts.
  • Loading branch information
jcsp committed Aug 8, 2022
1 parent ae72725 commit 1432357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/rptest/services/franz_go_verifiable_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ def _worker(self, idx, node):
self._status = ProduceStatus(data['Sent'], data['Acked'],
data['BadOffsets'],
data['Restarts'])
self.logger.info(str(self._status))
progress = (data['Sent'] / float(self._msg_count))
self.logger.info(
f"Producer progress: {progress*100:.2f}% {self._status}"
)
else:
self.logger.debug(line)

Expand Down

0 comments on commit 1432357

Please sign in to comment.