HBASE-23328 info:regioninfo goes wrong when region replicas enabled (#863)
Signed-off-by: Ramkrishna <ramkrishna.s.vasudevan@intel.com> Signed-off-by: Guangxu Cheng <guangxucheng@gmail.com>
This commit is contained in:
parent
ca6059f4db
commit
54ad797abb
|
@ -1839,7 +1839,10 @@ public class MetaTableAccessor {
|
||||||
.setQualifier(HConstants.REGIONINFO_QUALIFIER)
|
.setQualifier(HConstants.REGIONINFO_QUALIFIER)
|
||||||
.setTimestamp(p.getTimestamp())
|
.setTimestamp(p.getTimestamp())
|
||||||
.setType(Type.Put)
|
.setType(Type.Put)
|
||||||
.setValue(RegionInfo.toByteArray(hri))
|
// Serialize the Default Replica HRI otherwise scan of hbase:meta
|
||||||
|
// shows an info:regioninfo value with encoded name and region
|
||||||
|
// name that differs from that of the hbase;meta row.
|
||||||
|
.setValue(RegionInfo.toByteArray(RegionReplicaUtil.getRegionInfoForDefaultReplica(hri)))
|
||||||
.build());
|
.build());
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue