Repository navigation
Conversation
bburda
force-pushed
the
feat/rosbag-retention-5c
branch
2 times, most recently
from
December 2, 2026 12:15
c4a4c9f to
ec06e48
Compare
* feat(fault_manager): run and drop captures by retention priority * fix(fault_manager): one policy snapshot per capture queue decision * docs(fault_manager): the capture queue's FIFO fallback and the lock-free policy methods
bburda
force-pushed
the
feat/rosbag-retention-5c
branch
from
December 2, 2026 18:24
ec06e48 to
c70b262
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Today the capture queue runs captures in arrival order. When it is full it drops by
snapshots.capture_queue_full_policyalone, so the most important capture can be the one dropped. Issue 705 rule 6 asks for priority order: "When the capture queue is full, the capture with the lowest priority is dropped. Pending captures run in priority order." This PR does that with the retention priority of each capture's fault.This PR is on top of eleven PRs in the stack. Please review those first. The diff of this PR is against the branch of the PR directly below it.
What it adds:
capture_queue_full_policydecides:reject_newestdrops the incoming one when it ties,drop_oldestdrops the oldest.docs/config/fault-manager.rst,docs/tutorials/snapshots.rst, the fault manager README and design doc.What changes for users
capture_queue_full_policy.Issue
Type
Testing
colcon build --packages-up-to ros2_medkit_fault_manager --cmake-args -DPOSTGRES_SUPPORT=ON, thencolcon test --packages-select ros2_medkit_fault_managerandcolcon test-result --verbose.src/ros2_medkit_fault_manager/test/integration/test_capture_queue_priority.test.py, with one capture worker held by a blocker capture. It covers:test_capture_thread_pool.cpphas three in-process cases for what a real process cannot show: the priority reads run outside the queue mutex, one decision reads its priorities in one call, and with two workers no job runs twice or is lost.Checklist