You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// replace our current db uid with the required one.
1389
-
UID: db.UID,
1390
-
// Set a no generation since we aren't already converged.
1391
-
Generation: cluster.NoGeneration,
1392
-
Initializing: false,
1393
-
}
1394
-
iferr=p.saveDBLocalState(ndbls); err!=nil {
1395
-
log.Errorw("failed to save db local state", zap.Error(err))
1396
-
return
1397
-
}
1359
+
log.Errorw("different local dbUID but init mode is none, this shouldn't happen. Something bad happened to the keeper data. Check that keeper data is on a persistent volume and that the keeper state files weren't removed")
1398
1360
return
1399
1361
default:
1400
1362
log.Errorw("unknown db init mode", "initMode", string(db.Spec.InitMode))
1401
1363
return
1402
1364
}
1403
1365
}
1404
1366
1367
+
initialized, err:=pgm.IsInitialized()
1368
+
iferr!=nil {
1369
+
log.Errorw("failed to detect if instance is initialized", zap.Error(err))
1370
+
return
1371
+
}
1372
+
1373
+
ifinitialized {
1374
+
varstartedbool
1375
+
started, err=pgm.IsStarted()
1376
+
iferr!=nil {
1377
+
// log error getting instance state but go ahead.
1378
+
log.Errorw("failed to retrieve instance status", zap.Error(err))
0 commit comments