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
*: syncrepl, consider only really in sync standbys
When using syncrepl don't consider a standby in sync only because it has been
added in the synchronous_standby_names parameter but only when the postgres
instance reports it as in sync (querying pg_stat_replication).
log.Infow("one of the new synchronousStandbys has been removed", "db", dbUID, "inSyncStandbys", masterDB.Status.SynchronousStandbys, "synchronousStandbys", masterDB.Spec.SynchronousStandbys)
1222
+
update=true
1223
+
continue
1224
+
}
1225
+
if_, ok:=goodStandbys[dbUID]; !ok {
1226
+
log.Infow("one of the new synchronousStandbys is not in good state", "db", dbUID, "inSyncStandbys", masterDB.Status.SynchronousStandbys, "synchronousStandbys", masterDB.Spec.SynchronousStandbys)
1227
+
update=true
1228
+
continue
1229
+
}
1230
+
}
1231
+
ifupdate {
1232
+
// Use the current known in sync syncStandbys as Spec.SynchronousStandbys
1233
+
log.Infow("setting the expected sync-standbys to the current known in sync sync-standbys", "inSyncStandbys", masterDB.Status.SynchronousStandbys, "synchronousStandbys", masterDB.Spec.SynchronousStandbys)
log.Infof("won't update masterDB required synchronous standby since the latest master reported synchronous standbys are different from the db spec ones", "reported", curMasterDB.Status.SynchronousStandbys, "spec", curMasterDB.Spec.SynchronousStandbys)
1248
+
log.Infow("waiting for new defined synchronous standbys to be in sync", "inSyncStandbys", curMasterDB.Status.SynchronousStandbys, "synchronousStandbys", curMasterDB.Spec.SynchronousStandbys)
0 commit comments