mirror of https://github.com/apache/kafka.git
KAFKA-18400: Don't use YYYY when formatting/parsing dates in Java client (#18404)
Reviewers: Andrew Schofield <aschofield@confluent.io>
This commit is contained in:
parent
1ee715473c
commit
403fe71c5f
|
@ -180,7 +180,7 @@ Deletion of requested consumer groups ('my-group', 'my-other-group') was success
|
|||
--reset-offsets also has the following scenarios to choose from (at least one scenario must be selected):
|
||||
<ul>
|
||||
<li>
|
||||
--to-datetime <String: datetime> : Reset offsets to offsets from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'
|
||||
--to-datetime <String: datetime> : Reset offsets to offsets from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'
|
||||
</li>
|
||||
<li>
|
||||
--to-earliest : Reset offsets to earliest offset.
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
'n', where 'n' can be positive or
|
||||
negative
|
||||
--to-datetime <String> Reset offsets to offset from datetime.
|
||||
Format: 'YYYY-MM-DDTHH:mm:SS.sss'
|
||||
Format: 'YYYY-MM-DDThh:mm:ss.sss'
|
||||
--to-earliest Reset offsets to earliest offset.
|
||||
--to-latest Reset offsets to latest offset.
|
||||
--to-offset <Long> Reset offsets to a specific offset.
|
||||
|
|
|
@ -610,7 +610,7 @@ public class StreamsResetter {
|
|||
toOffsetOption = parser.accepts("to-offset", "Reset offsets to a specific offset.")
|
||||
.withRequiredArg()
|
||||
.ofType(Long.class);
|
||||
toDatetimeOption = parser.accepts("to-datetime", "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'")
|
||||
toDatetimeOption = parser.accepts("to-datetime", "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'")
|
||||
.withRequiredArg()
|
||||
.ofType(String.class);
|
||||
byDurationOption = parser.accepts("by-duration", "Reset offsets to offset by duration from current timestamp. Format: 'PnDTnHnMnS'")
|
||||
|
|
|
@ -62,7 +62,7 @@ public class ConsumerGroupCommandOptions extends CommandDefaultOptions {
|
|||
private static final String EXPORT_DOC = "Export operation execution to a CSV file. Supported operations: reset-offsets.";
|
||||
private static final String RESET_TO_OFFSET_DOC = "Reset offsets to a specific offset.";
|
||||
private static final String RESET_FROM_FILE_DOC = "Reset offsets to values defined in CSV file.";
|
||||
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'";
|
||||
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'";
|
||||
private static final String RESET_BY_DURATION_DOC = "Reset offsets to offset by duration from current timestamp. Format: 'PnDTnHnMnS'";
|
||||
private static final String RESET_TO_EARLIEST_DOC = "Reset offsets to earliest offset.";
|
||||
private static final String RESET_TO_LATEST_DOC = "Reset offsets to latest offset.";
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ShareGroupCommandOptions extends CommandDefaultOptions {
|
|||
"To define the scope use --all-topics or --topic.";
|
||||
private static final String DRY_RUN_DOC = "Only show results without executing changes on share groups. Supported operations: reset-offsets.";
|
||||
private static final String EXECUTE_DOC = "Execute operation. Supported operations: reset-offsets.";
|
||||
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'";
|
||||
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'";
|
||||
private static final String RESET_TO_EARLIEST_DOC = "Reset offsets to earliest offset.";
|
||||
private static final String RESET_TO_LATEST_DOC = "Reset offsets to latest offset.";
|
||||
private static final String MEMBERS_DOC = "Describe members of the group. This option may be used with the '--describe' option only.";
|
||||
|
|
Loading…
Reference in New Issue