Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/codec: add error handling to NewCommonHandle() to avoid panic #22458

Merged
merged 7 commits into from
Jan 21, 2021

Conversation

tangenta
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #22453

Problem Summary: #22453 (comment)

What is changed and how it works?

What's Changed:

This PR make sure that the peek() never panic.

Related changes

N/A

Check List

Tests

  • Unit test
  • Integration test

Side effects

N/A

Release note

  • Fix the panic problem that creating index after split regions on clustered index tables.

@tangenta tangenta requested a review from a team as a code owner January 20, 2021 12:35
@tangenta tangenta requested review from XuHuaiyu and removed request for a team January 20, 2021 12:35
@github-actions github-actions bot added the sig/execution SIG execution label Jan 20, 2021
@coocood
Copy link
Member

coocood commented Jan 20, 2021

How about adding a unit test for the CutOne function?

@ichn-hu ichn-hu mentioned this pull request Jan 21, 2021
Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 21, 2021
@AilinKid
Copy link
Contributor

how about changing the pr name to peek()?

@coocood
Copy link
Member

coocood commented Jan 21, 2021

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Jan 21, 2021
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Jan 21, 2021
@coocood
Copy link
Member

coocood commented Jan 21, 2021

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 21, 2021
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit ac17ae9 into pingcap:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alter table add index reports 'panic in the recoverable goroutine'
4 participants