Repository: phoenix
Updated Branches:
  refs/heads/4.8-HBase-1.0 070a177cd -> cb6787894


PHOENIX-3260 MetadataRegionObserver.postOpen() can prevent region server from 
shutting down for a long duration


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

Branch: refs/heads/4.8-HBase-1.0
Commit: cb678789440ba7347e88d945f5f6d7fced1142fa
Parents: 070a177
Author: Samarth <samarth.j...@salesforce.com>
Authored: Thu Sep 22 15:26:59 2016 -0700
Committer: Samarth <samarth.j...@salesforce.com>
Committed: Thu Sep 22 15:26:59 2016 -0700

----------------------------------------------------------------------
 .../org/apache/phoenix/coprocessor/MetaDataRegionObserver.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/cb678789/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java
index 770177c..aef5c69 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java
@@ -157,7 +157,9 @@ public class MetaDataRegionObserver extends 
BaseRegionObserver {
                 }
             }
         };
-        (new Thread(r)).start();
+        Thread t = new Thread(r);
+        t.setDaemon(true);
+        t.start();
 
         if (!enableRebuildIndex && !blockWriteRebuildIndex) {
             LOG.info("Failure Index Rebuild is skipped by configuration.");

Reply via email to