Skip to content

Add some useful logs#3720

Merged
cthulhu-rider merged 3 commits intomasterfrom
add-useful-logs
Dec 8, 2025
Merged

Add some useful logs#3720
cthulhu-rider merged 3 commits intomasterfrom
add-useful-logs

Conversation

@roman-khimov
Copy link
Member

No description provided.

It's the same by default (1s), but otherwise it's not much different from
regular cycle when we wait a bit and pick up the next batch afterwards. This
code was originally introduced before repCooldown.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
It can be noisy for small tests, but it's useful for real production networks
where we'd like to have some hints on policer state.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Right now the log sequence for PUT-with-cache looks like this:

    Dec 07 12:27:11 metis1 neofs-node[1649231]: info        log/log.go:12        local object storage operation        {"shard_id": "9RS1nEyW5xPLjuvagyPRNd", "substorage": "write-cache", "address": "Aku38wpn2xEqfEPxmwyAa7N3VnAkMV8PEVkpLqwKM1z3/8jdegCjfVG1NNWB1c4haaWcTVW47GhsC4MpHTZ49wUsY", "type": "write-cache", "op": "PUT"}
    Dec 07 12:27:11 metis1 neofs-node[1649231]: info        log/log.go:12        local object storage operation        {"shard_id": "9RS1nEyW5xPLjuvagyPRNd", "address": "Aku38wpn2xEqfEPxmwyAa7N3VnAkMV8PEVkpLqwKM1z3/8jdegCjfVG1NNWB1c4haaWcTVW47GhsC4MpHTZ49wUsY", "op": "metabase PUT"}
    Dec 07 12:27:12 metis1 neofs-node[1649231]: info        log/log.go:12        local object storage operation        {"shard_id": "9RS1nEyW5xPLjuvagyPRNd", "substorage": "write-cache", "address": "Aku38wpn2xEqfEPxmwyAa7N3VnAkMV8PEVkpLqwKM1z3/8jdegCjfVG1NNWB1c4haaWcTVW47GhsC4MpHTZ49wUsY", "type": "write-cache", "op": "DELETE"}

Obviously, we're missing some PUT to fstree which is added by this patch.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@codecov
Copy link

codecov bot commented Dec 7, 2025

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.87%. Comparing base (599672c) to head (e1bdc2a).
⚠️ Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/policer/process.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3720   +/-   ##
=======================================
  Coverage   26.87%   26.87%           
=======================================
  Files         658      658           
  Lines       41819    41825    +6     
=======================================
+ Hits        11239    11241    +2     
- Misses      29544    29548    +4     
  Partials     1036     1036           

☔ 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 0633cdb into master Dec 8, 2025
22 checks passed
@cthulhu-rider cthulhu-rider deleted the add-useful-logs branch December 8, 2025 06: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.

2 participants