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 authored and GitHub committed 2022-01-14 10:32:35 -08:00
1 parent 64d4da5a37
commit 0df31f63ab
3 files changed
+266 -51

No files matched your search

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