Skip to content

Commit

Permalink
[hotfix] [metrics] MetricRegistry threadNumber starts at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Nov 16, 2016
1 parent 53aae50 commit 611412c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private static final class MetricRegistryThreadFactory implements ThreadFactory
}

public Thread newThread(Runnable r) {
Thread t = new Thread(group, r, "Flink-MetricRegistry-" + threadNumber.incrementAndGet(), 0);
Thread t = new Thread(group, r, "Flink-MetricRegistry-" + threadNumber.getAndIncrement(), 0);
if (t.isDaemon()) {
t.setDaemon(false);
}
Expand Down

0 comments on commit 611412c

Please sign in to comment.