Skip to content

*: fix member race problem (#6070)#6091

Merged
ti-chi-bot merged 3 commits intotikv:release-6.5from
ti-chi-bot:cherry-pick-6070-to-release-6.5
Mar 6, 2023
Merged

*: fix member race problem (#6070)#6091
ti-chi-bot merged 3 commits intotikv:release-6.5from
ti-chi-bot:cherry-pick-6070-to-release-6.5

Conversation

@ti-chi-bot
Copy link
Copy Markdown
Member

This is an automated cherry-pick of #6070

What problem does this PR solve?

Issue Number: Ref #6069.

What is changed and how does it work?

#5310 did some changes to the header but for GetMembers, we may encounter a kind of situation: The server hasn't served but the request is coming. Because the cluster id could not be initialized, there might be a data race when reading/writing the cluster id.

Check List

Tests

  • Unit test

Release note

None.

rleungx added 3 commits March 6, 2023 02:59
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
@ti-chi-bot
Copy link
Copy Markdown
Member Author

ti-chi-bot commented Mar 6, 2023

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nolouch

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/cherry-pick-not-approved require-LGT1 Indicates that the PR requires an LGTM. type/cherry-pick-for-release-6.5 This PR is cherry-picked to release-6.5 from a source PR. labels Mar 6, 2023
@VelocityLight VelocityLight added the cherry-pick-approved Cherry pick PR approved by release team. label Mar 6, 2023
@ti-chi-bot ti-chi-bot requested review from nolouch and rleungx March 6, 2023 02:59
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.05 ⚠️

Comparison is base (297cee8) 75.65% compared to head (4e12069) 75.60%.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-6.5    #6091      +/-   ##
===============================================
- Coverage        75.65%   75.60%   -0.05%     
===============================================
  Files              330      330              
  Lines            32961    32968       +7     
===============================================
- Hits             24937    24926      -11     
- Misses            5875     5890      +15     
- Partials          2149     2152       +3     
Flag Coverage Δ
unittests 75.60% <100.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/movingaverage/median_filter.go 100.00% <100.00%> (ø)
server/grpc_service.go 49.67% <100.00%> (+0.04%) ⬆️
server/server.go 75.12% <100.00%> (-0.16%) ⬇️
pkg/tempurl/tempurl.go 45.00% <0.00%> (-15.00%) ⬇️
server/region_syncer/server.go 81.86% <0.00%> (-4.40%) ⬇️
server/storage/storage.go 67.30% <0.00%> (-3.85%) ⬇️
pkg/etcdutil/etcdutil.go 84.88% <0.00%> (-3.49%) ⬇️
server/id/id.go 83.05% <0.00%> (-3.39%) ⬇️
server/tso/tso.go 70.78% <0.00%> (-2.25%) ⬇️
server/encryptionkm/key_manager.go 70.11% <0.00%> (-1.60%) ⬇️
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 6, 2023
@nolouch
Copy link
Copy Markdown
Contributor

nolouch commented Mar 6, 2023

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member Author

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Copy Markdown
Member Author

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 4e12069

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 6, 2023
@ti-chi-bot ti-chi-bot merged commit 51f382c into tikv:release-6.5 Mar 6, 2023
@VelocityLight VelocityLight added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-approved Cherry pick PR approved by release team. release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/cherry-pick-for-release-6.5 This PR is cherry-picked to release-6.5 from a source PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants