File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
sled-agent/config-reconciler/src/reconciler_task Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments