Skip to content

Commit

Permalink
Fix docs about reset cursor (apache#5551)
Browse files Browse the repository at this point in the history
* Fix docs about reset cursor

Signed-off-by: xiaolong.ran <[email protected]>

* fix comments

Signed-off-by: xiaolong.ran <[email protected]>
  • Loading branch information
wolfstudy authored Nov 5, 2019
1 parent 669b916 commit 80e4b5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void run() throws PulsarAdminException {
}
}

@Parameters(commandDescription = "Reset position for subscription to position closest to timestamp or messageId")
@Parameters(commandDescription = "Reset position for subscription to a position that is closest to timestamp or messageId.")
private class ResetCursor extends CliCommand {
@Parameter(description = "persistent://tenant/namespace/topic", required = true)
private java.util.List<String> params;
Expand Down
6 changes: 4 additions & 2 deletions site2/docs/reference-pulsar-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -1978,18 +1978,20 @@ Options


### `reset-cursor`
Reset position for subscription to closest to timestamp
Reset position for subscription to a position that is closest to timestamp or messageId.

Usage
```bash
$ pulsar-admin topics reset-cursor topic options
```

Options

|Flag|Description|Default|
|---|---|---|
|`-s`, `--subscription`|Subscription to reset position on||
|`-t`, `--time`|The time, in minutes, to reset back to (or minutes, hours, days, weeks, etc.). Examples: `100m`, `3h`, `2d`, `5w`.||
|`-t`, `--time`|The time in minutes to reset back to (or minutes, hours, days, weeks, etc.). Examples: `100m`, `3h`, `2d`, `5w`.||
|`-m`, `--messageId`| The messageId to reset back to (ledgerId:entryId). ||



Expand Down

0 comments on commit 80e4b5f

Please sign in to comment.