Skip to content

Commit

Permalink
worker/storage: Fix heartbeat stall
Browse files Browse the repository at this point in the history
  • Loading branch information
jberci committed Apr 28, 2021
1 parent 86c5e5b commit cc55696
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions go/worker/storage/committee/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,10 @@ func (n *Node) WaitForRound(round uint64, root *storageApi.Root) (<-chan uint64,
}

func (n *Node) PauseCheckpointer(pause bool) error {
n.logger.Info("TRYING to pause checkpointer")
if !commonFlags.DebugDontBlameOasis() {
return api.ErrCantPauseCheckpointer
}
n.checkpointer.Pause(pause)
n.logger.Info("PAUSED checkpointer")
return nil
}

Expand Down
1 change: 1 addition & 0 deletions go/worker/storage/committee/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ func (h *heartbeat) reset() {

boff := backoff.NewExponentialBackOff()
boff.InitialInterval = 5 * time.Second
boff.MaxElapsedTime = 0
h.Ticker = backoff.NewTicker(boff)
}

0 comments on commit cc55696

Please sign in to comment.