Divneet18 commented on code in PR #1686:
URL: https://github.com/apache/phoenix/pull/1686#discussion_r1336401463


##########
phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java:
##########
@@ -194,7 +194,28 @@ public void testGetNextRegionStartKey() {
         
GlobalClientMetrics.GLOBAL_HBASE_COUNTER_METADATA_INCONSISTENCY.getMetric().reset();
         when(mockHRegionInfo.getStartKey()).thenReturn(notCorruptedStartKey);
         when(mockHRegionInfo.getEndKey()).thenReturn(notCorruptedNewKey);
-        testGetNextRegionStartKey(mockCqsi, mockRegionLocation, 
notCorruptedEndKey, false);
+        testGetNextRegionStartKey(mockCqsi, mockRegionLocation, 
notCorruptedEndKey, true);

Review Comment:
   for the new region, the startKey in this case is 0x2999 and endKey is 
0x3001. The previous regions end key is 0x3000 leading to an overlap. Hence, 
isCorrupted is true here. However, your confusion makes sense because the 
variable names were incorrect. I have updated the variable names to start with 
"corrupted" in all cases where isCorrupted is true and "notCorrupted" 
otherwise. I have pushed with new changes. Please review! 
   



-- 
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