[29/50] [abbrv] hbase git commit: HBASE-14256 Flush task message may be confusing when region is recovered (Gabor Liptak)

2016-03-30 Thread syuanjiang
HBASE-14256 Flush task message may be confusing when region is recovered (Gabor 
Liptak)


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

Branch: refs/heads/hbase-12439
Commit: 7c93098210d5f17242857a9a0148b4b26ff7aaae
Parents: e71bc71
Author: Jerry He 
Authored: Thu Mar 24 10:01:53 2016 -0700
Committer: Jerry He 
Committed: Thu Mar 24 10:06:38 2016 -0700

--
 .../org/apache/hadoop/hbase/regionserver/HRegion.java| 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/7c930982/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index ab19d08..4da0f13 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1217,11 +1217,12 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // force a flush only if region replication is set up for this region. 
Otherwise no need.
   boolean forceFlush = getTableDesc().getRegionReplication() > 1;
 
-  // force a flush first
-  MonitoredTask status = TaskMonitor.get().createStatus(
-"Flushing region " + this + " because recovery is finished");
+  MonitoredTask status = TaskMonitor.get().createStatus("Recovering region 
" + this);
+
   try {
+// force a flush first
 if (forceFlush) {
+  status.setStatus("Flushing region " + this + " because recovery is 
finished");
   internalFlushcache(status);
 }
 
@@ -1237,13 +1238,13 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // We cannot rethrow this exception since we are being called from 
the zk thread. The
   // region has already opened. In this case we log the error, but 
continue
   LOG.warn(getRegionInfo().getEncodedName() + " : was not able to 
write region opening "
-  + "event to WAL, continueing", e);
+  + "event to WAL, continuing", e);
 }
   } catch (IOException ioe) {
 // Distributed log replay semantics does not necessarily require a 
flush, since the replayed
 // data is already written again in the WAL. So failed flush should be 
fine.
 LOG.warn(getRegionInfo().getEncodedName() + " : was not able to flush "
-+ "event to WAL, continueing", ioe);
++ "event to WAL, continuing", ioe);
   } finally {
 status.cleanup();
   }



hbase git commit: HBASE-14256 Flush task message may be confusing when region is recovered (Gabor Liptak)

2016-03-24 Thread jerryjch
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 9725a5bd7 -> 1be381e7d


HBASE-14256 Flush task message may be confusing when region is recovered (Gabor 
Liptak)


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

Branch: refs/heads/branch-1.2
Commit: 1be381e7d98545d8745ffac7c6df22d486f31e01
Parents: 9725a5b
Author: Jerry He 
Authored: Thu Mar 24 10:01:53 2016 -0700
Committer: Jerry He 
Committed: Thu Mar 24 10:13:28 2016 -0700

--
 .../org/apache/hadoop/hbase/regionserver/HRegion.java| 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/1be381e7/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index da155fb..18024d9 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1189,11 +1189,12 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // force a flush only if region replication is set up for this region. 
Otherwise no need.
   boolean forceFlush = getTableDesc().getRegionReplication() > 1;
 
-  // force a flush first
-  MonitoredTask status = TaskMonitor.get().createStatus(
-"Flushing region " + this + " because recovery is finished");
+  MonitoredTask status = TaskMonitor.get().createStatus("Recovering region 
" + this);
+
   try {
+// force a flush first
 if (forceFlush) {
+  status.setStatus("Flushing region " + this + " because recovery is 
finished");
   internalFlushcache(status);
 }
 
@@ -1209,13 +1210,13 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // We cannot rethrow this exception since we are being called from 
the zk thread. The
   // region has already opened. In this case we log the error, but 
continue
   LOG.warn(getRegionInfo().getEncodedName() + " : was not able to 
write region opening "
-  + "event to WAL, continueing", e);
+  + "event to WAL, continuing", e);
 }
   } catch (IOException ioe) {
 // Distributed log replay semantics does not necessarily require a 
flush, since the replayed
 // data is already written again in the WAL. So failed flush should be 
fine.
 LOG.warn(getRegionInfo().getEncodedName() + " : was not able to flush "
-+ "event to WAL, continueing", ioe);
++ "event to WAL, continuing", ioe);
   } finally {
 status.cleanup();
   }



hbase git commit: HBASE-14256 Flush task message may be confusing when region is recovered (Gabor Liptak)

2016-03-24 Thread jerryjch
Repository: hbase
Updated Branches:
  refs/heads/master e71bc71c8 -> 7c9309821


HBASE-14256 Flush task message may be confusing when region is recovered (Gabor 
Liptak)


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

Branch: refs/heads/master
Commit: 7c93098210d5f17242857a9a0148b4b26ff7aaae
Parents: e71bc71
Author: Jerry He 
Authored: Thu Mar 24 10:01:53 2016 -0700
Committer: Jerry He 
Committed: Thu Mar 24 10:06:38 2016 -0700

--
 .../org/apache/hadoop/hbase/regionserver/HRegion.java| 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/7c930982/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index ab19d08..4da0f13 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1217,11 +1217,12 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // force a flush only if region replication is set up for this region. 
Otherwise no need.
   boolean forceFlush = getTableDesc().getRegionReplication() > 1;
 
-  // force a flush first
-  MonitoredTask status = TaskMonitor.get().createStatus(
-"Flushing region " + this + " because recovery is finished");
+  MonitoredTask status = TaskMonitor.get().createStatus("Recovering region 
" + this);
+
   try {
+// force a flush first
 if (forceFlush) {
+  status.setStatus("Flushing region " + this + " because recovery is 
finished");
   internalFlushcache(status);
 }
 
@@ -1237,13 +1238,13 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // We cannot rethrow this exception since we are being called from 
the zk thread. The
   // region has already opened. In this case we log the error, but 
continue
   LOG.warn(getRegionInfo().getEncodedName() + " : was not able to 
write region opening "
-  + "event to WAL, continueing", e);
+  + "event to WAL, continuing", e);
 }
   } catch (IOException ioe) {
 // Distributed log replay semantics does not necessarily require a 
flush, since the replayed
 // data is already written again in the WAL. So failed flush should be 
fine.
 LOG.warn(getRegionInfo().getEncodedName() + " : was not able to flush "
-+ "event to WAL, continueing", ioe);
++ "event to WAL, continuing", ioe);
   } finally {
 status.cleanup();
   }



hbase git commit: HBASE-14256 Flush task message may be confusing when region is recovered (Gabor Liptak)

2016-03-24 Thread jerryjch
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 625da2153 -> ee7ac7ea3


HBASE-14256 Flush task message may be confusing when region is recovered (Gabor 
Liptak)


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

Branch: refs/heads/branch-1.3
Commit: ee7ac7ea3b6ffdf20e4d09defe18a7078eb3b29e
Parents: 625da21
Author: Jerry He 
Authored: Thu Mar 24 10:01:53 2016 -0700
Committer: Jerry He 
Committed: Thu Mar 24 10:03:11 2016 -0700

--
 .../org/apache/hadoop/hbase/regionserver/HRegion.java| 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/ee7ac7ea/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index d3a31a3..cabfc39 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1210,11 +1210,12 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // force a flush only if region replication is set up for this region. 
Otherwise no need.
   boolean forceFlush = getTableDesc().getRegionReplication() > 1;
 
-  // force a flush first
-  MonitoredTask status = TaskMonitor.get().createStatus(
-"Flushing region " + this + " because recovery is finished");
+  MonitoredTask status = TaskMonitor.get().createStatus("Recovering region 
" + this);
+
   try {
+// force a flush first
 if (forceFlush) {
+  status.setStatus("Flushing region " + this + " because recovery is 
finished");
   internalFlushcache(status);
 }
 
@@ -1230,13 +1231,13 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // We cannot rethrow this exception since we are being called from 
the zk thread. The
   // region has already opened. In this case we log the error, but 
continue
   LOG.warn(getRegionInfo().getEncodedName() + " : was not able to 
write region opening "
-  + "event to WAL, continueing", e);
+  + "event to WAL, continuing", e);
 }
   } catch (IOException ioe) {
 // Distributed log replay semantics does not necessarily require a 
flush, since the replayed
 // data is already written again in the WAL. So failed flush should be 
fine.
 LOG.warn(getRegionInfo().getEncodedName() + " : was not able to flush "
-+ "event to WAL, continueing", ioe);
++ "event to WAL, continuing", ioe);
   } finally {
 status.cleanup();
   }



hbase git commit: HBASE-14256 Flush task message may be confusing when region is recovered (Gabor Liptak)

2016-03-24 Thread jerryjch
Repository: hbase
Updated Branches:
  refs/heads/branch-1 ca819e1ef -> 1361a25e6


HBASE-14256 Flush task message may be confusing when region is recovered (Gabor 
Liptak)


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

Branch: refs/heads/branch-1
Commit: 1361a25e6dad87ad41cd1502adc511a5b9263c39
Parents: ca819e1
Author: Jerry He 
Authored: Thu Mar 24 10:01:53 2016 -0700
Committer: Jerry He 
Committed: Thu Mar 24 10:01:53 2016 -0700

--
 .../org/apache/hadoop/hbase/regionserver/HRegion.java| 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/1361a25e/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index d3a31a3..cabfc39 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1210,11 +1210,12 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // force a flush only if region replication is set up for this region. 
Otherwise no need.
   boolean forceFlush = getTableDesc().getRegionReplication() > 1;
 
-  // force a flush first
-  MonitoredTask status = TaskMonitor.get().createStatus(
-"Flushing region " + this + " because recovery is finished");
+  MonitoredTask status = TaskMonitor.get().createStatus("Recovering region 
" + this);
+
   try {
+// force a flush first
 if (forceFlush) {
+  status.setStatus("Flushing region " + this + " because recovery is 
finished");
   internalFlushcache(status);
 }
 
@@ -1230,13 +1231,13 @@ public class HRegion implements HeapSize, 
PropagatingConfigurationObserver, Regi
   // We cannot rethrow this exception since we are being called from 
the zk thread. The
   // region has already opened. In this case we log the error, but 
continue
   LOG.warn(getRegionInfo().getEncodedName() + " : was not able to 
write region opening "
-  + "event to WAL, continueing", e);
+  + "event to WAL, continuing", e);
 }
   } catch (IOException ioe) {
 // Distributed log replay semantics does not necessarily require a 
flush, since the replayed
 // data is already written again in the WAL. So failed flush should be 
fine.
 LOG.warn(getRegionInfo().getEncodedName() + " : was not able to flush "
-+ "event to WAL, continueing", ioe);
++ "event to WAL, continuing", ioe);
   } finally {
 status.cleanup();
   }