Skip to content

Commit

Permalink
MB-50231: Increase timeout for watcher to go live to 30 Sec
Browse files Browse the repository at this point in the history
Backport MB-44158 to 6.6.5

Change-Id: Ib3d17475d81ad8bbc7b46e4d7404cd1f00a35773
(cherry picked from commit 4257a8b)
  • Loading branch information
ksaikrishnateja authored and amithk committed Jan 5, 2022
1 parent 1eea12d commit d640f9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions secondary/indexer/ddl_service_manager.go
Expand Up @@ -1553,7 +1553,7 @@ func (m *DDLServiceMgr) newMetadataProvider(nodes map[service.NodeID]bool) (*cli
// Wait for initialization complete
ticker := time.NewTicker(time.Millisecond * 500)
defer ticker.Stop()
retry := 10
retry := 60 // Is set to 60 for 30 Sec timeout for watchers to go live.

for range ticker.C {
retry = retry - 1
Expand All @@ -1569,7 +1569,8 @@ func (m *DDLServiceMgr) newMetadataProvider(nodes map[service.NodeID]bool) (*cli
}

provider.Close()
return nil, nil, errors.New("DDLServiceMgr: Failed to initialize metadata provider. Unable to connect to all indexer nodes within 5 seconds.")
return nil, nil, errors.New("DDLServiceMgr: Failed to initialize metadata provider. " +
" Unable to connect to all indexer nodes within 30 seconds.")
}
}
}
Expand Down

0 comments on commit d640f9f

Please sign in to comment.