Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 432632009A8 for ; Tue, 17 May 2016 20:25:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 41A321609F5; Tue, 17 May 2016 18:25:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F90B1607A8 for ; Tue, 17 May 2016 20:25:36 +0200 (CEST) Received: (qmail 76898 invoked by uid 500); 17 May 2016 18:25:35 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 76887 invoked by uid 99); 17 May 2016 18:25:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 18:25:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 205D3DFB7A; Tue, 17 May 2016 18:25:35 +0000 (UTC) From: adeneche To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request: DRILL-4676: Foreman.moveToState can block fore... Content-Type: text/plain Message-Id: <20160517182535.205D3DFB7A@git1-us-west.apache.org> Date: Tue, 17 May 2016 18:25:35 +0000 (UTC) archived-at: Tue, 17 May 2016 18:25:37 -0000 Github user adeneche commented on a diff in the pull request: https://github.com/apache/drill/pull/503#discussion_r63577142 --- Diff: common/src/main/java/org/apache/drill/common/EventProcessor.java --- @@ -57,25 +58,35 @@ public EventProcessor() { */ public void sendEvent(final T newEvent) { synchronized (queuedEvents) { - if (isProcessing) { - queuedEvents.addLast(newEvent); + queuedEvents.addLast(newEvent); + if (!started || isProcessing) { --- End diff -- done --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---