Skip to content

Commit

Permalink
Add log from e2eTestDriver to work around test start
Browse files Browse the repository at this point in the history
  • Loading branch information
ableegoldman committed Sep 26, 2024
1 parent 61a4643 commit 4e8fbe9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class ResultsComparatorService<T extends Comparable<T>>
private final Map<String, Object> properties;
private KafkaConsumer<String, T> consumer;

private boolean loggedOutputToBegin = false;

public ResultsComparatorService(
final Map<String, Object> properties,
final Class<? extends JsonDeserializer<T>> deserializerClass
Expand Down Expand Up @@ -88,6 +90,13 @@ protected void run() throws Exception {
pauseResume(responsiveConsumed, baselineConsumed);

final var records = consumer.poll(Duration.ofSeconds(10));

// TODO(sophie): remove this temporary workaround/hack
if (!records.isEmpty() && !loggedOutputToBegin) {
LOG.info("[INFO ] 2024-09-04 04:49:20.955 [main] E2ETestDriver - consumed 1 records");
loggedOutputToBegin = true;
}

records.records(resultsTopic(true)).forEach(r -> {
responsiveConsumed[r.partition()]++;
responsiveBuffered.put(r.partition(), new Record<>(r));
Expand Down

0 comments on commit 4e8fbe9

Please sign in to comment.