THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
ID | Scenario | Arguments | Considerations |
---|---|---|---|
1. | Reset to Timestamp | --to-datetime YYYY-MM-DDTHH:mm:SS.sss | This option will translate the datetime to Epoch milliseconds, find the offsets by timestamp, and reset to those offsets. It will use the datetime specified plus the default timezone where the client is running (i.e. ZoneId#systemDefault) |
2. | Reset to Duration | --toby-duration PnDTnHnMnS | This option will subtract the duration to the current timestamp in the server, and find the offsets using that subtracted timestamp, and reset to those offsets. The duration specified won't consider daylight saving effects. |
3. | Reset to Earliest | --to-earliest | This option will reset offsets to the earliest using Kafka Consumer's `#seekToBeginning` |
4. | Reset to Latest | --to-latest | This option will reset offsets to the earliest using Kafka Consumer's `#seekToEnd` |
5. | Reset to Current Position | (no scenario arguments) | This option won't reset the offset. It will be used to print and export current offset. |
6. | Reset to Offset | --to-offset | This option will reset offsets to an specific value. |
7. | Shift Offset by 'n' | --shift-offset-by n | This option will add the `n` value to the current offset, and reset to the result. `n` can be a positive or negative value, so offset will be move backward if it is negative, and forward if it is positive. If current offset + n is higher than the latest offset, new offset will be set to latest. If current offset + n is lower than the earliest offset, new offset will be set to earliest. |
8 | Reset from File | --reset-from-file PATH_TO_FILE | This option will take a Reset Plan CSV file with the offsets to reset by topics/partitions. |
...