mirror of
https://github.com/minio/minio.git
synced 2025-04-28 21:58:01 -04:00
fix: do not exit on bootstrap Verify() to allow for rolling upgrades (#9235)
This commit is contained in:
parent
d49f2ec19c
commit
541a778d7b
@ -397,9 +397,18 @@ func serverMain(ctx *cli.Context) {
|
|||||||
globalObjLayerMutex.Unlock()
|
globalObjLayerMutex.Unlock()
|
||||||
|
|
||||||
if globalIsDistXL && globalEndpoints.FirstLocal() {
|
if globalIsDistXL && globalEndpoints.FirstLocal() {
|
||||||
// Additionally in distributed setup validate
|
for {
|
||||||
if err := verifyServerSystemConfig(globalEndpoints); err != nil {
|
// Additionally in distributed setup, validate the setup and configuration.
|
||||||
logger.Fatal(err, "Unable to initialize distributed setup")
|
err := verifyServerSystemConfig(globalEndpoints)
|
||||||
|
if err == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
logger.LogIf(GlobalContext, err, "Unable to initialize distributed setup")
|
||||||
|
select {
|
||||||
|
case <-GlobalContext.Done():
|
||||||
|
return
|
||||||
|
case <-time.After(5 * time.Second):
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user