Skip to content

fix: rib command dropping entries and using wrong RIB snapshot#133

Merged
digizeph merged 1 commit into
mainfrom
fix/rib-time-filter-124
Jul 2, 2026
Merged

fix: rib command dropping entries and using wrong RIB snapshot#133
digizeph merged 1 commit into
mainfrom
fix/rib-time-filter-124

Conversation

@digizeph

@digizeph digizeph commented Jul 2, 2026

Copy link
Copy Markdown
Member

Fixes #124

  • Missing entries: Base RIB parser applied a start_ts filter at the RIB dump timestamp, silently dropping entries whose per-route timestamp (when the route was learned) predates the dump time. Stable routes learned days/weeks earlier were excluded. Fixed by using safe_rib_filters() that omits time filters for base RIB loading.
  • Wrong RIB selected / ~3× slowdown: Broker query used ts_end=target_ts, but the broker's ts_end filter is exclusive. A RIB starting exactly at the target timestamp was not returned, forcing selection of the previous RIB and replaying unnecessary update files. Fixed by using last_ts + 1.
  • Added tracing::info! progress logging for RIB loading and update replay (visible with --debug).

Two bugs in the RIB reconstruction lens:

1. Base RIB parser applied a start_ts filter at the RIB dump timestamp,
   silently dropping entries whose per-route timestamp (when the route was
   learned) predates the dump time. Stable routes learned days/weeks earlier
   were excluded. Fixed by using a separate safe_rib_filters() that omits
   time filters for base RIB loading.

2. Broker query used ts_end=target_ts, but the broker's ts_end filter is
   exclusive. A RIB starting exactly at the target timestamp was not returned,
   forcing selection of the previous RIB and replaying unnecessary update
   files (~3x slowdown for midnight RIB queries). Fixed by using last_ts+1.

Also added tracing::info! progress logging for RIB loading and update replay,
visible with --debug.
@digizeph digizeph merged commit f0818e5 into main Jul 2, 2026
1 check passed
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.

Finding the source of an announcement

1 participant