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:
parent
8fb44fae35
commit
0d656b1394
|
@ -1929,6 +1929,7 @@ public class MetaTableAccessor {
|
||||||
|
|
||||||
// region replicas are kept in the primary region's row
|
// region replicas are kept in the primary region's row
|
||||||
Put put = new Put(getMetaKeyForRegion(regionInfo), time);
|
Put put = new Put(getMetaKeyForRegion(regionInfo), time);
|
||||||
|
addRegionInfo(put, regionInfo);
|
||||||
addLocation(put, sn, openSeqNum, time, regionInfo.getReplicaId());
|
addLocation(put, sn, openSeqNum, time, regionInfo.getReplicaId());
|
||||||
putToMetaTable(connection, put);
|
putToMetaTable(connection, put);
|
||||||
LOG.info("Updated row " + regionInfo.getRegionNameAsString() +
|
LOG.info("Updated row " + regionInfo.getRegionNameAsString() +
|
||||||
|
|
Loading…
Reference in New Issue