You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ch...@apache.org on 2017/05/19 11:29:45 UTC

phoenix git commit: PHOENIX-3850 Indexer.postOpen should not always log 'Found some outstanding index updates that didn't succeed'

Repository: phoenix
Updated Branches:
  refs/heads/master 21fb0b31b -> bd2751266


PHOENIX-3850 Indexer.postOpen should not always log 'Found some outstanding index updates that didn't succeed'


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

Branch: refs/heads/master
Commit: bd27512666904a727adcd71b13725b02e655902b
Parents: 21fb0b3
Author: chenglei <ch...@apache.org>
Authored: Fri May 19 19:24:21 2017 +0800
Committer: chenglei <ch...@apache.org>
Committed: Fri May 19 19:26:35 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/hbase/index/Indexer.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/bd275126/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 9fc76e9..15e53a3 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
@@ -525,12 +525,14 @@ public class Indexer extends BaseRegionObserver {
         super.postOpen(c);
         return;
       }
-    LOG.info("Found some outstanding index updates that didn't succeed during"
-        + " WAL replay - attempting to replay now.");
+
     //if we have no pending edits to complete, then we are done
     if (updates == null || updates.size() == 0) {
       return;
     }
+
+    LOG.info("Found some outstanding index updates that didn't succeed during"
+            + " WAL replay - attempting to replay now.");
     
     // do the usual writer stuff, killing the server again, if we can't manage to make the index
     // writes succeed again