Skip to content

pkg/timers: do not skip delta handlers ever#3668

Merged
cthulhu-rider merged 1 commit intomasterfrom
fix/reporting-load-sizes
Nov 6, 2025
Merged

pkg/timers: do not skip delta handlers ever#3668
cthulhu-rider merged 1 commit intomasterfrom
fix/reporting-load-sizes

Conversation

@carpawell
Copy link
Member

@carpawell carpawell commented Nov 5, 2025

It was intended to prevent apps from making useless handler calls when they are
outdated. Still, in practice, it introduced a race condition and skips events
that must occur immediately at the new epoch event or near it. Treat every
sub-epoch timer as not-called-yet at every Reset call; calling at the wrong
time (when there is an incredible latency) is less error-prone than not calling
at all. Closes #3652.

It was intended to prevent apps from making useless handler calls when they are
outdated. Still, in practice, it introduced a race condition and skips events
that must occur immediately at the new epoch event or near it. Treat every
sub-epoch timer as not-called-yet at every `Reset` call; calling at the wrong
time (when there is an incredible latency) is less error-prone than not calling
at all. Closes #3652.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
@carpawell carpawell force-pushed the fix/reporting-load-sizes branch from d5860a7 to d9ba602 Compare November 5, 2025 14:32
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.39%. Comparing base (df9d134) to head (d9ba602).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
pkg/timers/timer.go 0.00% 2 Missing ⚠️
cmd/neofs-node/container.go 0.00% 1 Missing ⚠️
pkg/innerring/innerring.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3668      +/-   ##
==========================================
+ Coverage   27.37%   27.39%   +0.01%     
==========================================
  Files         658      658              
  Lines       41762    41748      -14     
==========================================
+ Hits        11433    11437       +4     
+ Misses      29262    29246      -16     
+ Partials     1067     1065       -2     

☔ 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.

@cthulhu-rider cthulhu-rider merged commit 9959af2 into master Nov 6, 2025
25 of 26 checks passed
@cthulhu-rider cthulhu-rider deleted the fix/reporting-load-sizes branch November 6, 2025 08:25
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.

Quota tests fail

3 participants