diff --git a/docs/dev/topology-over-raft.md b/docs/dev/topology-over-raft.md index 057aea43dd..40b77f7fc2 100644 --- a/docs/dev/topology-over-raft.md +++ b/docs/dev/topology-over-raft.md @@ -292,7 +292,7 @@ stateDiagram-v2 use_new --> cleanup cleanup --> end_migration end_migration --> [*] - allow_write_both_read_old --> revert_migration: error + allow_write_both_read_old --> cleanup_target: error write_both_read_old --> cleanup_target: error streaming --> cleanup_target: error write_both_read_new --> if_state: error diff --git a/service/topology_coordinator.cc b/service/topology_coordinator.cc index e1121f7ee8..f9f82f4c29 100644 --- a/service/topology_coordinator.cc +++ b/service/topology_coordinator.cc @@ -1046,7 +1046,7 @@ class topology_coordinator : public endpoint_lifecycle_subscriber { case locator::tablet_transition_stage::allow_write_both_read_old: if (action_failed(tablet_state.barriers[trinfo.stage])) { if (check_excluded_replicas()) { - transition_to_with_barrier(locator::tablet_transition_stage::revert_migration); + transition_to_with_barrier(locator::tablet_transition_stage::cleanup_target); break; } }