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

br: use atomic for failedFilesCount #52046

Merged
merged 1 commit into from
Mar 25, 2024
Merged

br: use atomic for failedFilesCount #52046

merged 1 commit into from
Mar 25, 2024

Conversation

arturmelanchyk
Copy link
Contributor

@arturmelanchyk arturmelanchyk commented Mar 24, 2024

What problem does this PR solve?

Issue Number:

Problem Summary: overengineering simple counter with sync.Mutex

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@sre-bot
Copy link
Contributor

sre-bot commented Mar 24, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

ti-chi-bot bot commented Mar 24, 2024

Welcome @arturmelanchyk!

It looks like this is your first PR to pingcap/tidb 🎉.

I'm the bot to help you request reviewers, add labels and more, See available commands.

We want to make sure your contribution gets all the attention it needs!



Thank you, and welcome to pingcap/tidb. 😃

Copy link

ti-chi-bot bot commented Mar 24, 2024

Hi @arturmelanchyk. Thanks for your PR.

I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 24, 2024
Copy link

tiprow bot commented Mar 24, 2024

Hi @arturmelanchyk. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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 kubernetes/test-infra repository.

@lance6716
Copy link
Contributor

/cc @Leavrth

Copy link

ti-chi-bot bot commented Mar 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, Leavrth

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added approved lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Mar 25, 2024
Copy link

ti-chi-bot bot commented Mar 25, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-03-24 14:02:49.460496846 +0000 UTC m=+1817396.482743234: ☑️ agreed by hawkingrei.
  • 2024-03-25 03:45:08.196596384 +0000 UTC m=+1866735.218842773: ☑️ agreed by Leavrth.

@Leavrth
Copy link
Contributor

Leavrth commented Mar 25, 2024

/ok-to-test

@ti-chi-bot ti-chi-bot bot added ok-to-test Indicates a PR is ready to be tested. and removed needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Mar 25, 2024
@BornChanger
Copy link
Contributor

Good catch! @arturmelanchyk

Copy link

tiprow bot commented Mar 25, 2024

@arturmelanchyk: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
fast_test_tiprow 57da9d2 link true /test fast_test_tiprow

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

Merging #52046 (57da9d2) into master (12af2e4) will decrease coverage by 17.8448%.
Report is 2 commits behind head on master.
The diff coverage is 66.6666%.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #52046         +/-   ##
=================================================
- Coverage   72.4866%   54.6419%   -17.8448%     
=================================================
  Files          1481       1592        +111     
  Lines        365386     608910     +243524     
=================================================
+ Hits         264856     332720      +67864     
- Misses        81051     252992     +171941     
- Partials      19479      23198       +3719     
Flag Coverage Δ
integration 36.5857% <66.6666%> (?)
unit 70.4360% <0.0000%> (-1.9447%) ⬇️

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

Components Coverage Δ
dumpling 53.9957% <ø> (-2.3014%) ⬇️
parser ∅ <ø> (∅)
br 51.4459% <66.6666%> (+5.0445%) ⬆️

@ti-chi-bot ti-chi-bot bot merged commit c3fa89a into pingcap:master Mar 25, 2024
30 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-issue-check Indicates that a PR no need to check linked issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants