Skip to content

Commit ff84d19

Browse files
committed
Increase some timeouts.
1 parent 91508e5 commit ff84d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/deployment/resources/deployment_health.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (r *Resources) RunDeploymentHealthLoop(stopCh <-chan struct{}) {
7070
// and stores it in-memory.
7171
func (r *Resources) fetchDeploymentHealth() error {
7272
// Ask cluster for its health
73-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
73+
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
7474
defer cancel()
7575
client, err := r.context.GetDatabaseClient(ctx)
7676
if err != nil {
@@ -151,7 +151,7 @@ func (r *Resources) InvalidateSyncStatus() {
151151
// fetchClusterShardSyncState performs a single fetch of the cluster inventory and
152152
// checks if all shards are in sync
153153
func (r *Resources) fetchClusterShardSyncState() error {
154-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
154+
ctx, cancel := context.WithTimeout(context.Background(), time.Minute*10)
155155
defer cancel()
156156
c, err := r.context.GetDatabaseClient(ctx)
157157
if err != nil {

0 commit comments

Comments
 (0)