Skip to content

fix(node): count a lane-store failure at capability intake - #2930

Merged
thiras merged 2 commits into
mainfrom
fix/2824-intake-store-failed-label
Nov 21, 2026
Merged

thiras merged 2 commits into
mainfrom
fix/2824-intake-store-failed-label

Conversation

@yigitdot

Copy link
Copy Markdown
Contributor

Closes #2824

intake_capability counted every signature and expiry drop on decdn_capability_intake_dropped_total{reason}, but its last arm, a register_lane store error, only logged at warn. The client sees the same unknown-lane refusal either way, so an operator alerting on the counter missed a lane store that keeps failing.

This takes option 2 from the issue: a sixth reason, store_failed. The counter now matches its own claim to be the only aggregate view of intake drops. The warn line stays.

  • CapabilityIntakeDropReason::StoreFailed, in ALL, so it exports at zero from startup.
  • The store-error arm counts it.
  • The enum, metric and intake_capability docs and the ADR registry row list the sixth reason.

Test plan

  • New intake_counts_a_lane_store_failure over a store whose record fails: no lane, store_failed 1, every other reason 0
  • Removing the new count fails that test
  • The existing five drop tests also assert store_failed 0
  • adr_registry_names_are_exported
  • cargo clippy --workspace --all-targets -- -D warnings

Copilot AI balanced review requested due to automatic review settings November 21, 2026 15:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-code-quality

github-code-quality Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

main 8858b72 fix/2824-intake-stor... 93d14c9 +/-
77% 77% 0%
View coverage of the 2 most impacted files.
File main 8858b72 fix/2824-intake-stor... 93d14c9 +/-
crates/node/src/dht/publish.rs 78% 77% -1%
crates/node/src...s/client/mod.rs 88% 88% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 21, 2026 21:12 UTC

@thiras
thiras merged commit fb28695 into main Nov 21, 2026
37 checks passed
@thiras
thiras deleted the fix/2824-intake-store-failed-label branch November 21, 2026 23:53
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.

node: intake_capability's register_lane store-failure arm is warn-only while the intake-drop counter claims to be the aggregate view

3 participants