reject changing pools when there are pending decommissions in-progress (#14102)

do not allow mutation to pool command line when there are
unfinished decommissions in place, disallow such scenarios
to avoid user mistakes.

also add testcases to cover all relevant scenarios.
This commit is contained in:
Harshavardhana
2022-01-14 10:32:35 -08:00
committed by GitHub
parent 64d4da5a37
commit 0df31f63ab
3 changed files with 266 additions and 51 deletions

View File

@@ -2157,6 +2157,7 @@ func mustGetPoolEndpoints(args ...string) EndpointServerPools {
SetCount: setCount,
DrivesPerSet: drivesPerSet,
Endpoints: endpoints,
CmdLine: strings.Join(args, " "),
}}
}