tkhurana commented on PR #2672:
URL: https://github.com/apache/phoenix/pull/2672#issuecomment-7051939665
- No test locks in the fix. Every existing test would still pass if
someone brought getEndKeys() back. Nothing tests getRegionEndKeys itself
(UncoveredGlobalIndexRegionScanner.java:339-355).
- Several existing ITs run the walk on multi-region tables, such as the
salted cases of UncoveredGlobalIndexRegionScannerIT and
MultiTenantEventualIndexIT.java:479.
They only check query results, and how rows are grouped into tasks
never changes the results.
- Suggestion: turn the walk into a static
getRegionEndKeys(RegionLocator, TreeSet<byte[]>) and unit-test it with a mocked
locator. Cover these cases:
- several regions;
- a row key exactly equal to a region end key, which pins that ceiling
includes the end key itself;
- a walk that stops before the last region;
- the stale-location check;
- many keys in one region, which should cost exactly one
getRegionLocation call.
Also add verify(locator, never()).getEndKeys().
--
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]