Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 40941eb6b -> 655e2d33d
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/655e2d33 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/655e2d33 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/655e2d33 Branch: refs/heads/4.x-HBase-0.98 Commit: 655e2d33df4eeae2283e1144b59052a30f3ddaec Parents: 40941eb Author: chenglei <cheng...@apache.org> Authored: Fri May 19 19:34:26 2017 +0800 Committer: chenglei <cheng...@apache.org> Committed: Fri May 19 19:34:26 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/655e2d33/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 8c5c733..748779f 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