Skip to content

Commit

Permalink
Increase leader datanode sync timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 11, 2024
1 parent 8f995fb commit 69fed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leader/cmd/tasks/leader_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (ls *LeaderSyncer) RunLeaderSync() {
select {
case <-ticker.C:
if ls.handler.IsReplicaAvailable() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
ls.handler.AddDataNodesToReplica(ctx, ls.directory.DataNodes)
cancel()
}
Expand Down

0 comments on commit 69fed15

Please sign in to comment.