From 2b7acbb2845e8fe986d8c68f08dfbb223e7b7623 Mon Sep 17 00:00:00 2001 From: Till Rohrmann Date: Tue, 15 Oct 2024 11:42:48 +0200 Subject: [PATCH] Update loglet_id when copying previous loglet configuration --- crates/admin/src/cluster_controller/logs_controller.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/admin/src/cluster_controller/logs_controller.rs b/crates/admin/src/cluster_controller/logs_controller.rs index daf57511eb..17657657aa 100644 --- a/crates/admin/src/cluster_controller/logs_controller.rs +++ b/crates/admin/src/cluster_controller/logs_controller.rs @@ -325,6 +325,7 @@ fn build_new_replicated_loglet_configuration( }) } else if let Some(sequencer) = log_servers.iter().choose(&mut rng) { previous_configuration.cloned().map(|mut configuration| { + configuration.loglet_id = rng.next_u64().into(); configuration.sequencer = **sequencer; configuration })