Skip to content

Conversation

@eboasson
Copy link
Contributor

This pull request partially addresses two open issues:

  • One commit addresses the first issue raised in Three major issues found for Cyclone. #23, by allowing any domain id to be used in dds_create_participant as long as the configuration file doesn't explicitly set a domain id. To accomplish this, the domain id specification in the configuration file now allows the keyword any (also the new default). This doesn't affect any cases that used to work already.
  • The other commit addresses the observation in ThroughputPublisher Termination #22 that ^C doesn't work when there is no subscriber. It ignores the termination flag set by the ^C handler while waiting for the subscriber to show up. This fix addresses it by delaying the setting of the handler, until the termination flag is respected.
    The other points raised in these two issues are not addressed.

…ny" (new default)

Note: DDS_DOMAIN_DEFAULT with a configuration specifying "any" results in domain 0.
Signed-off-by: Erik Boasson <eb@ilities.com>
… to terminate the process when waiting a matching subscriber

Signed-off-by: Erik Boasson <eb@ilities.com>
@eboasson
Copy link
Contributor Author

@k0ekk0ek, I am pretty sure the one test failure is Criterion hanging in termination. Could you please have a look and let me know if you are happy with this change and, if so, think it reasonable to merge it despite this failure?

@k0ekk0ek
Copy link
Contributor

@eboasson, I agree with the changes. And yes, please merge the changes. We know Criterion sometimes misbehaves (it'll be removed at some point not too far in the future) and I don't see how any of your changes should lead to difficulties during termination.

@eboasson eboasson merged commit 2cee550 into eclipse-cyclonedds:master Oct 18, 2018
@eboasson eboasson deleted the fix branch October 26, 2018 14:39
@eboasson
Copy link
Contributor Author

eboasson commented Jun 25, 2019 via email

@joxoby
Copy link
Contributor

joxoby commented Jun 25, 2019

Hi Erik,

Thanks for your answer.

What bugs me about it is that the domain-id is not a parameter of a DDS instance, since a single DDS instance should be able to support simultaneously every domain-id. Having a config option for a default domain-id makes sense, but this value should not have precedence over a domain-id explicitly supplied by the user programmatically when creating a new participant.
Also, multiple configuration sets for different domains in a single DDS instance might create a whole new set of complications without gaining much from it.
Again, I think that the domain-id should be interpreted as a "variable" of an instance instead of as a parameter.

Thank you.

@eboasson
Copy link
Contributor Author

eboasson commented Jun 25, 2019 via email

BartP6703 added a commit to BartP6703/cyclonedds that referenced this pull request Sep 24, 2019
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 this pull request may close these issues.

3 participants