@@ -167,26 +167,7 @@ func (a *actionWaitForMemberUp) checkProgressCluster(ctx context.Context) (bool,
167167 log .Debug ().Str ("status" , string (sh .Status )).Msg ("Member set status not yet good" )
168168 return false , false , nil
169169 }
170- if a .action .Group == api .ServerGroupDBServers {
171- dbs , err := c .Databases (ctx )
172- if err != nil {
173- return false , false , err
174- }
175- for _ , db := range dbs {
176- inv , err := cluster .DatabaseInventory (ctx , db )
177- if err != nil {
178- return false , false , err
179- }
180-
181- for _ , col := range inv .Collections {
182- if ! col .AllInSync {
183- log .Debug ().Str ("col" , col .Parameters .Name ).Msg ("Not in sync" )
184- return false , false , nil
185- }
186- }
187- }
188170
189- }
190171 // Wait for the member to become ready from a kubernetes point of view
191172 // otherwise the coordinators may be rotated to fast and thus none of them
192173 // is ready resulting in a short downtime
@@ -197,6 +178,10 @@ func (a *actionWaitForMemberUp) checkProgressCluster(ctx context.Context) (bool,
197178 log .Debug ().Msg ("Member not yet ready" )
198179 return false , false , nil
199180 }
181+
182+ if a .action .Group == api .ServerGroupDBServers {
183+ a .actionCtx .InvalidateSyncStatus ()
184+ }
200185 return true , false , nil
201186}
202187
0 commit comments