krconv commented on code in PR #7629:
URL: https://github.com/apache/hbase/pull/7629#discussion_r2709313058


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java:
##########
@@ -441,7 +441,8 @@ public void append(TableName tableName, byte[] 
encodedRegionName, byte[] row,
           // keep going to the cache, we will not learn of the replicas and 
their locations after
           // they come online.
           if (useCache && locations.size() == 1) {
-            if (tableDescriptors.get(tableName).getRegionReplication() > 1 && 
retries <= 3) {
+            TableDescriptor td = tableDescriptors.get(tableName);
+            if (td != null && td.getRegionReplication() > 1 && retries <= 3) {

Review Comment:
   Thanks for walking through the logic here; I agree it is unneeded, just 
removed it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to