Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.94.16
-
None
-
Reviewed
Description
In VerifyReplication, we may set startTime and endTime to restrict the data to verfiy. However, the endTime won't be set in the program if we only pass endTime without startTime in command line argument. The reason is the following code:
if (startTime != 0) {
scan.setTimeRange(startTime,
endTime == 0 ? HConstants.LATEST_TIMESTAMP : endTime);
}
The code will ignore endTime setting when not passing startTime in command line argument. Another place needs to improvement is the help message as follows:
System.err.println(" stoprow end of the row");
However, the program actually use "endrow" to parse the arguments:
final String endTimeArgKey = "--endtime="; if (cmd.startsWith(endTimeArgKey)) { endTime = Long.parseLong(cmd.substring(endTimeArgKey.length())); continue; }