Bug #769
closed
lttng create --live with -C/-D does not work
Added by David Goulet over 10 years ago.
Updated over 10 years ago.
Description
This does not work and sends back a "EINVAL" error. This is due to the lttng create command that sets the HOME url to be the default destination for the live session since with -C/-D are set after session creation. The command should use the default live URL instead.
lttng create --live 1000000 -C tcp://localhost:5342 -D tcp://localhost:5343
There is actually are more important issue here in terms of design.
Live is a special case that does NOT allow the given URL to be NULL with lttng_create_session_live() thus the need to pass a default URL. However, the lttng_set_consumer_url() fails if the relayd URL are already set which was previously done by the create live call.
I would say the easiest way here would be to allow empty URL when creating a live session. This will also fix an issue for the load command that needs to set independently the data and control URL taken from the xml session file.
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Also available in: Atom
PDF