-
Notifications
You must be signed in to change notification settings - Fork 793
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
A reader receives RETCODE_NO_DATA with keyed topics when the value of the key is zero [12862] #2306
Comments
CC: @Barry-Xu-2018 @iuhilnehc-ynos (This problem is originally come from one of our division.) |
After quickly checking, I found While Fast-DDS/examples/C++/Keys/sample.idl Lines 1 to 4 in 5fc0d6c
While key_value is 0, the value of Fast-DDS/include/fastdds/rtps/common/InstanceHandle.h Lines 34 to 37 in 5fc0d6c
If each value is 0, it is considered to be undefined. Fast-DDS/include/fastdds/rtps/common/InstanceHandle.h Lines 107 to 121 in 5fc0d6c
Get warning while creating new_change. Fast-DDS/src/cpp/rtps/writer/RTPSWriter.cpp Lines 218 to 221 in 6b55651
InstanceHandle_t is created by the below code, which is produced by Fast-DDS/examples/C++/Keys/samplePubSubTypes.cxx Lines 110 to 132 in 5fc0d6c
|
Hello, I posted related comments previously, just in case if it can help resolving this issue: |
@WataruToishita @fujitatomoya @davidhjp01 Please check if #2316 solves your issues. |
@Barry-Xu-2018 could you try that out if the problem can be solved? |
Hi @MiguelCompany, |
After checking, #2316 can fix this problem. |
Seems it works on our side as well. |
@MiguelCompany we've done double check on this issue can be solved by #2316. please close this issue once #2316 is merged. appreciate it 👍 |
A reader receives RETCODE_NO_DATA with keyed topics.
struct sample{
octet index;
@key octet key_value;
};
This symptom occurs only when key_value = 0.
Expected Behavior
A reader receives RETCODE_OK regardless of key_value.
Current Behavior
A reader receives RETCODE_NO_DATA only when key_value = 0.
Steps to Reproduce
From
my_sample.key_value(i + 1);
tomy_sample.key_value(i + 0);
System information
V2.4.0: This symptom occurs.
V2.3.0: This symptom occurs.
V2.2.0: No Problem
The text was updated successfully, but these errors were encountered: