JingsongLi commented on code in PR #11357: URL: https://github.com/apache/paimon/pull/11357#discussion_r4662474425
########## docs/docs/pypaimon/cli-versions.md: ########## @@ -27,6 +27,22 @@ under the License. Retain a dataset snapshot with a tag or work on a separate table history with a branch. Configure the CLI first, and use a table that already has committed data. Commands below illustrate separate operations; choose the ones you need. +## Table Rollback + +Use `paimon table rollback` to restore a previous table state. For filesystem +catalogs, rollback removes snapshots and tags newer than the target. Before +rolling back, inspect the available targets with Review Comment: **[P2] Tell operators to stop writers before filesystem rollback.** I reproduced this with a local Parquet table and an append committed immediately after rollback listed snapshots 1 and 2. Rolling back to 1 left snapshot 3 on disk. After a subsequent append, the latest snapshot snapped back to 3 and the reader returned rows `[1, 2, 3]`, including the rows that the rollback had removed and without the new row. Please document that writers must be stopped before inspecting the target and performing the rollback. The project already gives this instruction for its savepoint workflow. [Flink savepoint guide](https://paimon.apache.org/docs/master/flink/savepoint/) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
