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

refactor(admin): prevent large lock from internal/admin.(*Admin) #559

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Aug 1, 2023

What this PR does

This PR prevents the large lock from internal/admin.(*Admin). Concretely it changes the role of internal/admin.(*Admin).mu from the single huge lock to guarding the fields such as lis, serverAddr, and closed.

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (a18b285) 61.20% compared to head (94be0e7) 61.15%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                         Coverage Diff                         @@
##           admin_mrmanager_check_repfactor     #559      +/-   ##
===================================================================
- Coverage                            61.20%   61.15%   -0.05%     
===================================================================
  Files                                  144      144              
  Lines                                19243    19185      -58     
===================================================================
- Hits                                 11777    11733      -44     
+ Misses                                6878     6861      -17     
- Partials                               588      591       +3     
Files Coverage Δ
internal/admin/admin.go 61.44% <38.88%> (-0.15%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This PR prevents the large lock from `internal/admin.(*Admin)`. Concretely it changes the role of
`internal/admin.(*Admin).mu` from the single huge lock to guarding the fields such as `lis`,
`serverAddr`, and `closed`.
@ijsong ijsong force-pushed the admin_mrmanager_check_repfactor branch from cfe10ea to a18b285 Compare October 4, 2023 07:37
@ijsong ijsong force-pushed the admin_no_large_lock branch from 9c795bc to 94be0e7 Compare October 4, 2023 07:37
@ijsong
Copy link
Member Author

ijsong commented Oct 4, 2023

Merge Activity

  • Oct 4, 5:10 AM: @ijsong started a stack merge that includes this pull request via Graphite.
  • Oct 4, 5:11 AM: @ijsong merged this pull request with Graphite.

Base automatically changed from admin_mrmanager_check_repfactor to main October 4, 2023 09:10
@ijsong ijsong merged commit 12024e0 into main Oct 4, 2023
@ijsong ijsong deleted the admin_no_large_lock branch October 4, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants