-
Notifications
You must be signed in to change notification settings - Fork 116
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
Found incoherent method calls in rmw_create_subscription. #647
Comments
@MiguelCompany i think this is a bug, can you confirm? |
I fixed formattings: Oscarchoi@7631039 |
@fujitatomoya I think @Oscarchoi is right, and the proposed changes seem correct. |
@Oscarchoi as @MiguelCompany mentioned, this needs to be fixed as bug. Could you create PR with using your fix? I am happy to review 👍 |
Thank you both for confirmation! 😃 |
Signed-off-by: Wooyoung Choi <wy.choi@naverlabs.com>
This was fixed by #649 , so closing this out. |
Bug report
In the following snippet of code,
associate_reader(…)
(line:104) anddissociate_writer(…)
(line:114) do not correspond to each other.rmw_fastrtps/rmw_fastrtps_cpp/src/rmw_subscription.cpp
Lines 101 to 124 in ccea7a3
Considering that
rmw_ds_common::GraphCache
separates the gid storage of readers and writers, I think it has to dissociate the reader that was associated right above. Inrmw_create_publisher(...)
, the corresponding counterpart of the codes, the associated writer is dissociated when publishing fails.I think it should be modified as follows. Oscarchoi@e997378 If the existing code is not intended, is it okay to PR the above changes?
By the way, the test code assumes that
rmw_create_subscription
will always succeed, so this fallback code has no effect.The text was updated successfully, but these errors were encountered: