Skip to content

Commit

Permalink
migrations: document idempotence requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
pgellert committed Apr 11, 2024
1 parent 7da848e commit 33d857f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/v/migrations/feature_migrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class feature_migrator {
* If not overriding `start` and `do_migrate`, then implement
* `do_mutate` to express the change that should be made to
* the system during upgrade.
*
* `do_mutate` should be idempotent as it may be executed multiple times if
* there is a leader reelection while do_mutate is being executed.
*/
virtual ss::future<> do_mutate() { return ss::now(); }
ss::future<> do_migrate();
Expand Down

0 comments on commit 33d857f

Please sign in to comment.