Skip to content

tablet picker: use partial result from GetTabletMap if it is available#6639

Merged
deepthi merged 2 commits intovitessio:masterfrom
planetscale:ds-tp-partial-result
Aug 31, 2020
Merged

tablet picker: use partial result from GetTabletMap if it is available#6639
deepthi merged 2 commits intovitessio:masterfrom
planetscale:ds-tp-partial-result

Conversation

@deepthi
Copy link
Copy Markdown
Collaborator

@deepthi deepthi commented Aug 27, 2020

Also, check for cell before cellsAlias to reduce the number of topo errors.

Signed-off-by: deepthi deepthi@planetscale.com

@deepthi deepthi requested a review from sougou as a code owner August 27, 2020 18:02
check for cell before cellsAlias to reduce number of topo errors.

Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi force-pushed the ds-tp-partial-result branch from 64dbe08 to 4d13b28 Compare August 27, 2020 18:17
shortCtx, cancel := context.WithTimeout(ctx, *topo.RemoteOperationTimeout)
defer cancel()
alias, err := tp.ts.GetCellsAlias(shortCtx, cell, false)
_, err := tp.ts.GetCellInfo(ctx, cell, false)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to use the shortCtx context here too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. I'll fix it.

Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi merged commit 50b1ad4 into vitessio:master Aug 31, 2020
@deepthi deepthi deleted the ds-tp-partial-result branch September 9, 2020 23:48
@askdba askdba added this to the v8.0 milestone Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants