@@ -77,7 +77,7 @@ func (a *actionWaitForMemberUp) CheckProgress(ctx context.Context) (bool, bool,
7777 case api .ServerGroupTypeArangoD :
7878 switch a .actionCtx .GetMode () {
7979 case api .DeploymentModeSingle :
80- return a .checkProgressSingle (ctxChild ), false , nil
80+ return a .checkProgressSingle (), false , nil
8181 case api .DeploymentModeActiveFailover :
8282 if a .action .Group == api .ServerGroupAgents {
8383 return a .checkProgressAgent (), false , nil
@@ -99,16 +99,18 @@ func (a *actionWaitForMemberUp) CheckProgress(ctx context.Context) (bool, bool,
9999
100100// checkProgressSingle checks the progress of the action in the case
101101// of a single server.
102- func (a * actionWaitForMemberUp ) checkProgressSingle (ctx context. Context ) bool {
103- c , err := a .actionCtx .GetMembersState (). State (). GetDatabaseClient ( )
104- if err != nil {
105- a .log .Err ( err ). Debug ( "Failed to create database client " )
102+ func (a * actionWaitForMemberUp ) checkProgressSingle () bool {
103+ m , found := a .actionCtx .GetMemberStatusByID ( a . MemberID () )
104+ if ! found {
105+ a .log .Error ( "No such member " )
106106 return false
107107 }
108- if _ , err := c .Version (ctx ); err != nil {
109- a .log .Err (err ).Debug ("Failed to get version" )
108+
109+ if ! m .Conditions .IsTrue (api .ConditionTypeActive ) {
110+ a .log .Debug ("Member not yet active" )
110111 return false
111112 }
113+
112114 return true
113115}
114116
@@ -187,8 +189,8 @@ func (a *actionWaitForMemberUp) checkProgressCluster(ctx context.Context) bool {
187189 }
188190 }
189191
190- if ! m .Conditions .IsTrue (api .ConditionTypeReady ) {
191- a .log .Debug ("Member not yet ready " )
192+ if ! m .Conditions .IsTrue (api .ConditionTypeActive ) {
193+ a .log .Debug ("Member not yet active " )
192194 return false
193195 }
194196
0 commit comments