mirror of https://github.com/minio/minio.git
fix: warning for decommissioned pool while start (#20019)
This commit is contained in:
parent
f736702da8
commit
f7ff19cb18
|
@ -358,7 +358,7 @@ func (p *poolMeta) validate(pools []*erasureSets) (bool, error) {
|
||||||
update = true
|
update = true
|
||||||
}
|
}
|
||||||
if ok && pi.completed {
|
if ok && pi.completed {
|
||||||
return false, fmt.Errorf("pool(%s) = %s is decommissioned, please remove from server command line", humanize.Ordinal(pi.position+1), k)
|
logger.LogIf(GlobalContext, "decommission", fmt.Errorf("pool(%s) = %s is decommissioned, please remove from server command line", humanize.Ordinal(pi.position+1), k))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ func TestPoolMetaValidate(t *testing.T) {
|
||||||
meta: nmeta1,
|
meta: nmeta1,
|
||||||
pools: pools,
|
pools: pools,
|
||||||
name: "Invalid-Completed-Pool-Not-Removed",
|
name: "Invalid-Completed-Pool-Not-Removed",
|
||||||
expectedErr: true,
|
expectedErr: false,
|
||||||
expectedUpdate: false,
|
expectedUpdate: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue