Skip to content

Commit 3d342e9

Browse files
authored
Merge pull request kubernetes#130067 from kerthcet/fix/readyz
Update the error log
2 parents e30c8a3 + 6761163 commit 3d342e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/kube-scheduler/app/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
208208
return nil
209209
default:
210210
}
211-
return fmt.Errorf("waiting for handlers to sync")
211+
return fmt.Errorf("handlers are not fully synchronized")
212212
})
213213
readyzChecks = append(readyzChecks, handlerSyncCheck)
214214

@@ -266,7 +266,7 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
266266

267267
// Wait for all handlers to sync (all items in the initial list delivered) before scheduling.
268268
if err := sched.WaitForHandlersSync(ctx); err != nil {
269-
logger.Error(err, "waiting for handlers to sync")
269+
logger.Error(err, "handlers are not fully synchronized")
270270
}
271271

272272
close(handlerSyncReadyCh)

0 commit comments

Comments
 (0)