Skip to content

fixed redundant defer in sessionCore.closeOnce #1817

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asmyasnikov
Copy link
Member

No description provided.

Copy link

summary

Base version: v3.110.2-0.20250617155334-3510af897320 (master)
Cannot suggest a release version.
Can only suggest a release version when compared against the most recent version of this major: v3.110.1.

@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.63%. Comparing base (3510af8) to head (7f23393).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1817      +/-   ##
==========================================
- Coverage   70.80%   70.63%   -0.18%     
==========================================
  Files         385      385              
  Lines       40211    40211              
==========================================
- Hits        28473    28404      -69     
- Misses      10574    10626      +52     
- Partials     1164     1181      +17     
Flag Coverage Δ
experiment 70.22% <100.00%> (-0.20%) ⬇️
go-1.21.x 68.86% <100.00%> (-0.12%) ⬇️
go-1.24.x 70.57% <100.00%> (-0.23%) ⬇️
integration 53.48% <100.00%> (-0.48%) ⬇️
macOS 40.29% <100.00%> (-0.03%) ⬇️
ubuntu 70.63% <100.00%> (-0.17%) ⬇️
unit 40.31% <100.00%> (-0.02%) ⬇️
windows 40.29% <100.00%> (-0.03%) ⬇️
ydb-24.4 52.38% <100.00%> (-0.74%) ⬇️
ydb-25.1 53.32% <100.00%> (-0.22%) ⬇️
ydb-latest 53.00% <100.00%> (-0.53%) ⬇️
ydb-nightly 70.22% <100.00%> (-0.20%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -198,8 +198,8 @@ func (core *sessionCore) attach(ctx context.Context) (finalErr error) {
}

core.closeOnce = sync.OnceFunc(func() {
defer close(core.done)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should keep defer close()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants