Github user revans2 commented on a diff in the pull request:
    --- Diff: storm-core/src/jvm/org/apache/storm/messaging/local/ 
    @@ -82,31 +86,73 @@ public void close() {
         private static class LocalClient implements IConnection {
             private final LocalServer _server;
    +        //Messages sent before the server registered a callback
    +        private final LinkedBlockingQueue<TaskMessage> 
    +        private final ScheduledExecutorService _pendingFlusher;
             public LocalClient(LocalServer server) {
                 _server = server;
    +            _pendingDueToUnregisteredServer = new LinkedBlockingQueue<>();
    +            _pendingFlusher = Executors.newScheduledThreadPool(1, new 
    +                @Override
    +                public Thread newThread(Runnable runnable) {
    +                    Thread thread = new Thread(runnable);
    +                    thread.setName("LocalClientFlusher-" + thread.getId());
    +                    thread.setDaemon(true);
    +                    return thread;
    +                }
    +            });
    +            _pendingFlusher.scheduleAtFixedRate(new Runnable(){
    +                @Override
    +                public void run(){
    +                    try {
    +                        //Ensure messages are flushed even if no more 
sends are performed
    +                        flushPending();
    +                    } catch (Throwable t) {
    +                        LOG.error("Uncaught throwable in pending message 
flusher thread, messages may be lost", t);
    +                        throw t;
    --- End diff --
    My guess is that it is java8 being smart and that when we try to pull it 
into 1.x it will fail.

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 or file a JIRA ticket
with INFRA.

Reply via email to