Skip to content

Commit

Permalink
Adjust shard acquire expiration (#3032)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Jun 28, 2022
1 parent 69ae0f4 commit e52d10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/shard/context_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ func (s *ContextImpl) getOrUpdateRemoteClusterInfoLocked(clusterName string) *re
func (s *ContextImpl) acquireShard() {
// Retry for 5m, with interval up to 10s (default)
policy := backoff.NewExponentialRetryPolicy(50 * time.Millisecond)
policy.SetExpirationInterval(5 * time.Minute)
policy.SetExpirationInterval(8 * time.Second)

// Remember this value across attempts
ownershipChanged := false
Expand Down

0 comments on commit e52d10e

Please sign in to comment.