Skip to content

Commit

Permalink
90s ctx deadline
Browse files Browse the repository at this point in the history
Signed-off-by: Priya Bibra <[email protected]>
  • Loading branch information
pbibra committed Oct 17, 2023
1 parent eaad958 commit 0b4f83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/vstream_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (vs *vstream) streamFromTablet(ctx context.Context, sgtid *binlogdatapb.Sha

// Create a child context with a stricter timeout when picking a tablet.
// This will prevent hanging in the case no tablets are found
tpCtx, tpCancel := context.WithTimeout(context.Background(), 60*time.Second)
tpCtx, tpCancel := context.WithTimeout(context.Background(), 90*time.Second)
defer tpCancel()

tablet, err := tp.PickForStreaming(tpCtx)
Expand Down

0 comments on commit 0b4f83f

Please sign in to comment.