hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/4] hbase git commit: Amend HBASE-17069 RegionServer writes invalid META entries in some circumstances
Date Thu, 23 Feb 2017 22:00:42 GMT
Amend HBASE-17069 RegionServer writes invalid META entries in some circumstances

Fix Hregioninfo being null during merge

Signed-off-by: Andrew Purtell <apurtell@apache.org>


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

Branch: refs/heads/master
Commit: 0d656b1394c1bfb702199998d69efbd10f879d2f
Parents: 8fb44fa
Author: Abhishek Singh Chouhan <abhishekchouhan121@gmail.com>
Authored: Thu Feb 23 17:53:05 2017 +0530
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Thu Feb 23 13:45:58 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0d656b13/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
index 5a37afc..61d4c66 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
@@ -1929,6 +1929,7 @@ public class MetaTableAccessor {
 
     // region replicas are kept in the primary region's row
     Put put = new Put(getMetaKeyForRegion(regionInfo), time);
+    addRegionInfo(put, regionInfo);
     addLocation(put, sn, openSeqNum, time, regionInfo.getReplicaId());
     putToMetaTable(connection, put);
     LOG.info("Updated row " + regionInfo.getRegionNameAsString() +


Mime
View raw message