gjacoby126 commented on a change in pull request #751: PHOENIX-5735 Add the
maxLookBack logic in the inline validation.
URL: https://github.com/apache/phoenix/pull/751#discussion_r402653740
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/IndexRebuildRegionScanner.java
##########
@@ -950,20 +1004,30 @@ private void verifyIndexRows(List<KeyRange> keys,
}
if (keys.size() > 0) {
for (KeyRange keyRange : keys) {
- String errorMsg = "Missing index row";
byte[] key = keyRange.getLowerRange();
List<Mutation> mutationList = indexKeyToMutationMap.get(key);
- if (mutationList.get(mutationList.size() - 1) instanceof
Delete) {
+ Mutation mutation = mutationList.get(mutationList.size() - 1);
+ if (mutation instanceof Delete) {
continue;
}
+ long currentTime = EnvironmentEdgeManager.currentTime();
Review comment:
Better to use the Phoenix EnvironmentEdgeManager, though the HBase one would
also work.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services