Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 341ab2c74 -> 0c2c696fd


PHOENIX-3964 Index.preWALRestore should handle index write failure


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 0c2c696fdc87da0a3d41832966ada838e39954ec
Parents: 341ab2c
Author: chenglei <[email protected]>
Authored: Fri Jun 30 17:06:52 2017 +0800
Committer: chenglei <[email protected]>
Committed: Fri Jun 30 17:06:52 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/hbase/index/Indexer.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0c2c696f/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java
index ab8c434..e66dc71 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/Indexer.java
@@ -547,7 +547,7 @@ public class Indexer extends BaseRegionObserver {
      * hopes they come up before the primary table finishes.
      */
     Collection<Pair<Mutation, byte[]>> indexUpdates = 
extractIndexUpdate(logEdit);
-    recoveryWriter.write(indexUpdates, true);
+    recoveryWriter.writeAndKillYourselfOnFailure(indexUpdates, true);
   }
 
   /**

Reply via email to