priyankporwal commented on a change in pull request #733: PHOENIX-5732:
Implement starttime, endtime in IndexTool for rebuild a…
URL: https://github.com/apache/phoenix/pull/733#discussion_r392641456
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
##########
@@ -271,8 +275,17 @@ public static IndexVerifyType fromValue(byte[] value) {
+ "If specified, truncates the index table and rebuilds
(optional)");
private static final Option HELP_OPTION = new Option("h", "help", false,
"Help");
+ private static final Option START_TIME_OPTION = new Option("st",
"starttime",
+ true, "Start time for indextool rebuild or verify");
+ private static final Option END_TIME_OPTION = new Option("et", "endtime",
+ true, "End time for indextool rebuild or verify");
+
public static final String INDEX_JOB_NAME_TEMPLATE =
"PHOENIX_%s.%s_INDX_%s";
+ public static final String INVALID_TIME_RANGE_EXCEPTION_MESSAGE =
"startTime is greater than "
+ + "or equal to endTime "
+ + "or startTime is set in future; IndexTool can't proceed.";
Review comment:
or either of them are in the future??
----------------------------------------------------------------
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