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

*: compatible with Go 1.14's checkptr #18189

Merged
merged 3 commits into from
Jun 24, 2020

Conversation

bobotu
Copy link
Contributor

@bobotu bobotu commented Jun 23, 2020

What problem does this PR solve?

The Go 1.14 introduces new instrumentation to check that Go code is following unsafe.Pointer safety rules dynamically. The new flag -d=checkptr is enabled by default with the -race or -msan flags.

I have fixed memdb in #14972, and this PR will try to fix the remaining parts. And ngaut/unistore#402 is for unistore.

What is changed and how it works?

The newer version of bbolt has fixed this issue, so update it to the latest version. It doesn't change the version of etcd, and bbolt is only used in tests, I think it is safe to do so.

For murmur3 hash package, change to https://github.com/twmb/murmur3

Release note

  • No release note

@bobotu bobotu requested review from a team as code owners June 23, 2020 09:35
@bobotu bobotu requested review from wshwsh12 and removed request for a team June 23, 2020 09:35
@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #18189 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #18189   +/-   ##
===========================================
  Coverage   79.9187%   79.9187%           
===========================================
  Files           535        535           
  Lines        146535     146535           
===========================================
  Hits         117109     117109           
  Misses        20190      20190           
  Partials       9236       9236           

@bobotu bobotu closed this Jun 23, 2020
Copy link
Contributor

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM

@lysu lysu added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 23, 2020
@bobotu
Copy link
Contributor Author

bobotu commented Jun 23, 2020

PTAL @tiancaiamao

Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood
Copy link
Member

coocood commented Jun 24, 2020

/merge

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

Your auto merge job has been accepted, waiting for:

  • 18180
  • 18036

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

lgtm

@tiancaiamao tiancaiamao merged commit 06e73a5 into pingcap:master Jun 24, 2020
@bobotu bobotu deleted the fix-tests-on-go1.14 branch June 29, 2020 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/statistics component/test sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants