HBASE-29831 Fix for NPE in region replication (branch-2.5 backport)#7684
HBASE-29831 Fix for NPE in region replication (branch-2.5 backport)#7684krconv wants to merge 1 commit intoapache:branch-2.5from
Conversation
Signed-off-by: Chandra Kambham <chandra@apache.org> Signed-off-by: Peng Lu <lupeng@apache.org>
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
There is a test case failed ( |
| // they come online. | ||
| if (useCache && locations.size() == 1 && TableName.isMetaTableName(tableName)) { | ||
| if (tableDescriptors.get(tableName).getRegionReplication() > 1) { | ||
| TableDescriptor td = tableDescriptors.get(tableName); |
There was a problem hiding this comment.
Sorry, I just noticed a few additional concerns after approving
I found the issue doesn't seem to exist for branch-2.5.
The code is only executed when seCache && locations.size() == 1 && TableName.isMetaTableName(tableName) is true, whch means that it's meta table, and the td of meta table is not null in here . right ? @krconv
There was a problem hiding this comment.
Oh I see; agreed it doesn't seem to apply here. Thank you for finding that! I'll close this.
Backport to branch-2.5 for PR #7629