Skip to content

server: fix the race on (*Server).clusterID#7773

Merged
ti-chi-bot[bot] merged 2 commits intotikv:masterfrom
JmPotato:fix_cluster_id_race
Jan 29, 2024
Merged

server: fix the race on (*Server).clusterID#7773
ti-chi-bot[bot] merged 2 commits intotikv:masterfrom
JmPotato:fix_cluster_id_race

Conversation

@JmPotato
Copy link
Member

What problem does this PR solve?

Issue Number: Close #7772.

What is changed and how does it work?

Fix the race on `(*Server).clusterID`.

Check List

Tests

  • Unit test
  • Integration test

Release note

None.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 29, 2024

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • HuSharp
  • rleungx

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 bot added the release-note-none Denotes a PR that doesn't merit a release note. label Jan 29, 2024
@JmPotato JmPotato requested review from HuSharp and rleungx January 29, 2024 08:42
@ti-chi-bot ti-chi-bot bot requested a review from disksing January 29, 2024 08:42
@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 29, 2024
@ti-chi-bot ti-chi-bot bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 29, 2024
Copy link
Member

@HuSharp HuSharp left a comment

Choose a reason for hiding this comment

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

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato
Copy link
Member Author

The data race appears to be a separate issue. I would prefer to address it at a later time, if we encounter it again.

@ti-chi-bot ti-chi-bot bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jan 29, 2024
@JmPotato
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 29, 2024

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

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

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
Contributor

ti-chi-bot bot commented Jan 29, 2024

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

DetailsCommit hash: 3230a65

@ti-chi-bot ti-chi-bot bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 29, 2024
@codecov
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Merging #7773 (3230a65) into master (cf02b18) will increase coverage by 3.67%.
Report is 2 commits behind head on master.
The diff coverage is 89.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7773      +/-   ##
==========================================
+ Coverage   69.76%   73.44%   +3.67%     
==========================================
  Files         430      430              
  Lines       47632    47645      +13     
==========================================
+ Hits        33231    34993    +1762     
+ Misses      11652     9635    -2017     
- Partials     2749     3017     +268     
Flag Coverage Δ
unittests 73.44% <89.18%> (+3.67%) ⬆️

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

@ti-chi-bot ti-chi-bot bot merged commit e8da033 into tikv:master Jan 29, 2024
@JmPotato JmPotato deleted the fix_cluster_id_race branch January 29, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. 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.

Data race on (*server).clusterID

3 participants