Skip to content

Commit 4123f50

Browse files
committed
comment about what happens with running zones
1 parent 7ac5811 commit 4123f50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sled-agent/config-reconciler/src/reconciler_task/external_disks.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,15 @@ impl ExternalDisks {
706706
// To determine whether we've already done this, we construct a unique
707707
// value once in the lifetime of each sled agent process. After we
708708
// destroy and re-create the dataset, we'll set this property.
709+
//
710+
// ---
711+
//
712+
// It is also worth noting that it's conceivable that we find a zoneroot
713+
// here for a zone that is still running. This could happen if we're
714+
// doing the first adoption of disks after sled agent restarts. In that
715+
// case, we will wind up archiving (and deleting) its log files out from
716+
// under it. We deem this okay because in this case, we're about to
717+
// restart that zone anyway.
709718
static AGENT_LOCAL_VALUE: OnceLock<String> = OnceLock::new();
710719
let agent_local_value = AGENT_LOCAL_VALUE
711720
.get_or_init(|| Alphanumeric.sample_string(&mut rand::rng(), 20));

0 commit comments

Comments
 (0)