hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [4/4] hbase git commit: Amend HBASE-17069 RegionServer writes invalid META entries in some circumstances
Date Thu, 23 Feb 2017 22:00:44 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/fe00b59a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/fe00b59a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/fe00b59a

Branch: refs/heads/branch-1.2
Commit: fe00b59a3f11a0fffad271934d56ad8f733ca86b
Parents: 7314575
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:46:21 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/fe00b59a/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 6626485..51bcc54 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
@@ -1389,6 +1389,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