Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-18400: Don't use YYYY when formatting/parsing dates in Java client #18404

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ops.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h4 class="anchor-heading"><a id="basic_ops_consumer_group" class="anchor-link">
--reset-offsets also has the following scenarios to choose from (at least one scenario must be selected):
<ul>
<li>
--to-datetime &lt;String: datetime&gt; : Reset offsets to offsets from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'
--to-datetime &lt;String: datetime&gt; : Reset offsets to offsets from datetime. Format: 'yyyy-MM-DDTHH:mm:SS.sss'
</li>
<li>
--to-earliest : Reset offsets to earliest offset.
Expand Down
2 changes: 1 addition & 1 deletion docs/streams/developer-guide/app-reset-tool.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2>Step 1: Run the application reset tool<a class="headerlink" href="#step-1-ru
&#39;n&#39;, where &#39;n&#39; can be positive or
negative
--to-datetime &lt;String&gt; Reset offsets to offset from datetime.
Format: &#39;YYYY-MM-DDTHH:mm:SS.sss&#39;
Format: &#39;yyyy-MM-DDTHH:mm:SS.sss&#39;
--to-earliest Reset offsets to earliest offset.
--to-latest Reset offsets to latest offset.
--to-offset &lt;Long&gt; Reset offsets to a specific offset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public StreamsResetterOptions(String[] args) {
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'")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
Loading