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>
This commit is contained in:
Abhishek Singh Chouhan 2017-02-23 17:53:05 +05:30 committed by Andrew Purtell
parent 8fb44fae35
commit 0d656b1394
1 changed files with 1 additions and 0 deletions

View File

@ -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() +