drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h.@apache.org
Subject drill git commit: DRILL-3022: ensure sequential shutdown of drillbits
Date Mon, 11 May 2015 06:41:21 GMT
Repository: drill
Updated Branches:
  refs/heads/master 826fc5b9c -> 84371eaee


DRILL-3022: ensure sequential shutdown of drillbits


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/84371eae
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/84371eae
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/84371eae

Branch: refs/heads/master
Commit: 84371eaee1d0d52aa7fbd21cd8a7b728a5cab401
Parents: 826fc5b
Author: Hanifi Gunes <hgunes@maprtech.com>
Authored: Sun May 10 23:37:20 2015 -0700
Committer: Hanifi Gunes <hgunes@maprtech.com>
Committed: Sun May 10 23:37:20 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/drill/exec/server/Drillbit.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/84371eae/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
index 531253e..0640dbb 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
@@ -326,7 +326,9 @@ public class Drillbit implements AutoCloseable {
     public void run() {
       logger.info("Received shutdown request.");
       try {
-        drillbit.close();
+        synchronized (idCounter) {
+          drillbit.close();
+        }
       } catch(final Exception e) {
         throw new RuntimeException("Caught exception closing Drillbit started from\n" + stackTrace,
e);
       }


Mime
View raw message