Skip to content

distsql: fix span resolver panic#15413

Merged
RaduBerinde merged 1 commit intocockroachdb:masterfrom
RaduBerinde:radu-15352
Apr 27, 2017
Merged

distsql: fix span resolver panic#15413
RaduBerinde merged 1 commit intocockroachdb:masterfrom
RaduBerinde:radu-15352

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

Fixing an incorrect check in Seek(). We want to reuse the last descriptor if
it contains the key, not if the old span we were partitioning does. Adding some
verbose logging messages too.

I have a test that was causing the panic in a different change I'm working on,
so I'm not adding a dedicated test here.

Fixes #15352.

@RaduBerinde RaduBerinde requested a review from andreimatei April 27, 2017 16:40
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Fixing an incorrect check in `Seek()`. We want to reuse the last descriptor if
it contains the key, not if the old span we were partitioning does. Adding some
verbose logging messages too.

I have a test that was causing the panic in a different change I'm working on,
so I'm not adding a dedicated test here.

Fixes cockroachdb#15352.
@RaduBerinde RaduBerinde force-pushed the radu-15352 branch 2 times, most recently from 43fe790 to e9a949c Compare April 27, 2017 16:54
@andreimatei
Copy link
Copy Markdown
Contributor

:lgtm:


Review status: 0 of 3 files reviewed at latest revision, all discussions resolved, some commit checks pending.


Comments from Reviewable

@RaduBerinde RaduBerinde merged commit 90e72a4 into cockroachdb:master Apr 27, 2017
@RaduBerinde RaduBerinde deleted the radu-15352 branch April 27, 2017 18:18
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