Repository navigation
Conversation
bburda
force-pushed
the
feat/rosbag-retention-1c
branch
from
December 1, 2026 15:43
44685aa to
97d2f27
Compare
bburda
force-pushed
the
feat/rosbag-retention-1c
branch
from
December 2, 2026 12:15
97d2f27 to
b63a84d
Compare
… unknown * fix(fault_manager): keep a recording whose PostgreSQL commit outcome is unknown * fix(fault_manager): keep the node up when a forget's PostgreSQL commit is in doubt * test(fault_manager): pin a known store failure on PostgreSQL as a discard * docs(fault_manager): name the exceptions to unchanged rows and to bags without a row
bburda
force-pushed
the
feat/rosbag-retention-1c
branch
from
December 2, 2026 18:24
b63a84d to
2db2e68
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
When PostgreSQL loses the connection while a rosbag change is being committed, libpqxx cannot say whether the commit was applied. Until now the fault manager treated that as a failed store and deleted the recording's directory, even when its row had been committed: the recording was lost, and its row was removed later as stale. This PR keeps the recording in that case.
This PR is on top of four 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:
PgFaultStorage::apply_rosbag_changesthrowsRosbagCommitInDoubtwhen libpqxx reportspqxx::in_doubt_error, and does not retry. A connection lost before COMMIT is still retried, and a commit that fails with a known error is still a failure. The other PostgreSQL transactions are unchanged.kInDoubt. The bag directory stays, one WARN names the path, and no "Bag file created" line follows. No quota eviction runs after it in that store.docs/config/fault-manager.rst, the fault manager README and the design doc.What changes for users
Issue
Type
Testing
colcon build --packages-up-to ros2_medkit_fault_manager --cmake-args -DPOSTGRES_SUPPORT=ON, thencolcon test --packages-select ros2_medkit_fault_managerwithROS2_MEDKIT_TEST_PG_CONNset, andcolcon test-result --verbose.src/ros2_medkit_fault_manager/test/integration/test_rosbag_commit_in_doubt_pg.test.py. It runs the real fault manager against PostgreSQL through a TCP proxy that cuts the connection at the COMMIT of a rosbag change, either after the server committed or before it got the COMMIT. It also checks that a lost connection before COMMIT is retried, that a known store error still discards the bag, and that a forget in doubt keeps the node up.Checklist