Github user HeartSaVioR commented on a diff in the pull request:
https://github.com/apache/storm/pull/1400#discussion_r63306096
--- Diff: storm-core/src/jvm/org/apache/storm/utils/DisruptorQueue.java ---
@@ -62,10 +64,20 @@
private static final FlusherPool FLUSHER = new FlusherPool();
private static class FlusherPool {
- private Timer _timer = new Timer("disruptor-flush-trigger", true);
- private ThreadPoolExecutor _exec = new ThreadPoolExecutor(1, 100,
10, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(1024), new
ThreadPoolExecutor.DiscardPolicy());
+ private static final String THREAD_PREFIX = "disruptor-flush";
+ private Timer _timer = new Timer(THREAD_PREFIX + "-trigger", true);
+ private ThreadPoolExecutor _exec;
private HashMap<Long, ArrayList<Flusher>> _pendingFlush = new
HashMap<>();
private HashMap<Long, TimerTask> _tt = new HashMap<>();
+
+ public FlusherPool() {
+ _exec = new ThreadPoolExecutor(1, 100, 10, TimeUnit.SECONDS,
new ArrayBlockingQueue<Runnable>(1024), new ThreadPoolExecutor.DiscardPolicy());
+ ThreadFactory threadFactory = new ThreadFactoryBuilder()
--- End diff --
indentation
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---