Skip to content
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

LateJoiner example The Volatile Subsciber not reading anything #2062

Closed
gmihi opened this issue Jul 13, 2021 · 1 comment · Fixed by #2096
Closed

LateJoiner example The Volatile Subsciber not reading anything #2062

gmihi opened this issue Jul 13, 2021 · 1 comment · Fixed by #2096

Comments

@gmihi
Copy link

gmihi commented Jul 13, 2021

I run the example FastDDS/examples/DDS/LateJoiners, build with CMake. and run exe.

application behavior should be according to the readme

  • The Volatile Subscriber only holds the last 20 samples sent after its creation.
  • The Transient-Local Subscriber holds all samples, including the 20 that were sent before its creation.

issue - but I am not receiving anything from Volatile Subscriber

also tried changing wqos.durability().kind = VOLATILE_DURABILITY_QOS;
still same result, VOLATILE subscriber not receiving anyhting

Transient-Local is okay, it holds 40 samples

@gmihi
Copy link
Author

gmihi commented Jul 13, 2021

putting sleep after creation of myReader2 resolved the problem

DataReader* myReader2 = mySub2->create_datareader(SubTopic, rvqos);

if (myReader2 == nullptr)
{
    std::cout << "something went wrong while creating the Volatile Subscriber DataReader..." << std::endl;
    return;
}

std::this_thread::sleep_for(std::chrono::milliseconds(100)); // sleep after myReader2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant