-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_read_order: return success #1177
set_read_order: return success #1177
Conversation
74a7306
to
a33b1b4
Compare
rosbag2_storage/include/rosbag2_storage/storage_interfaces/base_read_interface.hpp
Outdated
Show resolved
Hide resolved
Gist: https://gist.githubusercontent.com/emersonknapp/e5759b670fc0136412f5d739932ca559/raw/aea5e00d3f23132b22e229fe8ebed53517a0969e/ros2.repos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a concern about not throwing exception in open if we fail to setup read order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @james-rms. Now LGTM if CI will pass.
@MichaelOrlov I believe the failures in https://build.ros2.org/job/Rpr__rosbag2__ubuntu_jammy_amd64/431/ are not related to this PR - would you be able to kick off a full CI run on the build farm? |
@ros-pull-request-builder retest this please |
Ok re-running full CI since Rpr passed |
It seems Windows CI build is broken on build farm. I have the same issue in another PR #1175 (comment) |
This time of year, the AWS spot prices fluctuate wildly, so our workers sometimes get unceremoniously yanked from underneath us. Just try again; it will eventually work. |
Signed-off-by: James Smith <james@foxglove.dev>
Signed-off-by: James Smith <james@foxglove.dev>
Signed-off-by: James Smith <james@foxglove.dev>
Signed-off-by: James Smith <james@foxglove.dev>
Signed-off-by: James Smith <james@foxglove.dev>
Signed-off-by: James Smith <james@foxglove.dev>
6bbaf4e
to
3a7c9d9
Compare
Signed-off-by: James Smith <james@foxglove.dev>
b352ce0
to
c2b36aa
Compare
Gist: https://gist.githubusercontent.com/james-rms/db3e068b715188676e7d53c6ee250379/raw/aea5e00d3f23132b22e229fe8ebed53517a0969e/ros2.repos |
Signed-off-by: James Smith <james@foxglove.dev> Signed-off-by: Ricardo Manríquez <ricardo.manriquez+gh@gmail.com>
This PR makes these changes:
set_read_order
should only be called afteropen()
. There are cases where a storage plugin actually needs to read the underlying bag file in order to determine whether a given read order is supported. For example, if a timestamp index is required to read in timestamp order, the storage plugin needs to know whether that is present before accepting a request to read in timestamp order.SequentialReader
if read order is set before opening the underlying storage.set_read_order
to return a boolean for success or failure. This makes the flow for client code attempting to set a read order more ergonomic. Previously a client would have to check for astd::runtime_error
and possibly inspect the exception text to ensure that the exception is about whether the read order is supported, rather than something unrelated.