Skip to content

Commit

Permalink
Issue #4158 - Bug: Intermittent panic on agent startup
Browse files Browse the repository at this point in the history
Signed-off-by: Le Zhang <[email protected]>
  • Loading branch information
LiilyZhang committed Oct 10, 2024
1 parent 97d4c64 commit 6f82031
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions agreement/agreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ func (w *AgreementWorker) reconcileNodePolicy() int {
return 60
}

w.checkNodePolicyChanges()
if w.limitedRetryEC != nil {
w.checkNodePolicyChanges()
}

return 60
}
Expand Down Expand Up @@ -501,7 +503,9 @@ func (w *AgreementWorker) CommandHandler(command worker.Command) bool {
w.checkNodeChanges()

case *NodePolicyChangeCommand:
w.checkNodePolicyChanges()
if w.limitedRetryEC != nil {
w.checkNodePolicyChanges()
}

case *NodeSvcConfigStateChangeCommand:
w.checkServiceConfigStateChanges()
Expand Down

0 comments on commit 6f82031

Please sign in to comment.