Skip to content

Commit

Permalink
[FLINK-7739][kafka-tests] Throttle down data producing thread
Browse files Browse the repository at this point in the history
This closes apache#4751.
  • Loading branch information
pnowojski authored and tillrohrmann committed Oct 30, 2017
1 parent 185c807 commit 152f6c9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public void run(SourceContext<Tuple2<Long, String>> ctx) throws Exception {
while (running) {
ctx.collect(new Tuple2<Long, String>(cnt, "kafka-" + cnt));
cnt++;
if (cnt % 100 == 0) {
Thread.sleep(1);
}
}
}

Expand Down

0 comments on commit 152f6c9

Please sign in to comment.