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

Fix shutdown failure after manual sync #2327

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Conversation

gammazero
Copy link
Collaborator

If a manual synce request is given when there is already a sync in progress, the WaitGroup is being incremented even though a new goroutine is not started. This causes the server shutdown to hang waiting for the WaitGroup.

If a manual synce request is given when there is already a sync in progress, the WaitGroup is being incremented even though a new goroutine is not started. This causes the server shutdown to hang waiting for the WaitGroup.
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

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

Comparison is base (6a4e5da) 46.72% compared to head (8ef01f0) 46.71%.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2327      +/-   ##
==========================================
- Coverage   46.72%   46.71%   -0.02%     
==========================================
  Files          84       84              
  Lines        9960     9961       +1     
==========================================
- Hits         4654     4653       -1     
- Misses       4775     4776       +1     
- Partials      531      532       +1     
Files Coverage Δ
server/admin/handler.go 13.10% <0.00%> (+0.02%) ⬆️
internal/httpserver/util.go 45.45% <0.00%> (-6.16%) ⬇️

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

@gammazero gammazero merged commit db873b1 into main Oct 6, 2023
9 checks passed
@gammazero gammazero deleted the fix-manual-sync-shutdown branch October 6, 2023 21:49
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.

None yet

2 participants