Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 c14857374 -> 60a65efe8
PHOENIX-4446 Sequence table region opening failing because of property setting attempt on read-only configuration(Rajeshbabu) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/60a65efe Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/60a65efe Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/60a65efe Branch: refs/heads/4.x-HBase-0.98 Commit: 60a65efe895268c3cab69bafdcf6fd03340ebd60 Parents: c148573 Author: Rajeshbabu Chintaguntla <rajeshb...@apache.org> Authored: Sat Dec 9 10:32:55 2017 +0530 Committer: Rajeshbabu Chintaguntla <rajeshb...@apache.org> Committed: Sat Dec 9 10:32:55 2017 +0530 ---------------------------------------------------------------------- .../java/org/apache/phoenix/hbase/index/write/IndexWriter.java | 3 ++- .../main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/60a65efe/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java index 6b57025..4e5e182 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java @@ -33,6 +33,7 @@ import org.apache.hadoop.hbase.util.Pair; import org.apache.phoenix.hbase.index.exception.IndexWriteException; import org.apache.phoenix.hbase.index.table.HTableInterfaceReference; import org.apache.phoenix.hbase.index.util.ImmutableBytesPtr; +import org.apache.phoenix.index.PhoenixIndexFailurePolicy; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; @@ -88,7 +89,7 @@ public class IndexWriter implements Stoppable { Configuration conf = env.getConfiguration(); try { IndexFailurePolicy committer = - conf.getClass(INDEX_FAILURE_POLICY_CONF_KEY, KillServerOnFailurePolicy.class, + conf.getClass(INDEX_FAILURE_POLICY_CONF_KEY, PhoenixIndexFailurePolicy.class, IndexFailurePolicy.class).newInstance(); return committer; } catch (InstantiationException e) { http://git-wip-us.apache.org/repos/asf/phoenix/blob/60a65efe/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java index 49053ec..da434f9 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexBuilder.java @@ -101,11 +101,6 @@ public class PhoenixIndexBuilder extends NonTxIndexBuilder { @Override public void setup(RegionCoprocessorEnvironment env) throws IOException { super.setup(env); - Configuration conf = env.getConfiguration(); - // Install handler that will attempt to disable the index first before killing the region - // server - conf.setIfUnset(IndexWriter.INDEX_FAILURE_POLICY_CONF_KEY, - PhoenixIndexFailurePolicy.class.getName()); } @Override