Bug #1365
openRepeated snapshots of session in snapshot mode yield sometimes empty results
0%
Description
I'm currently evaluating LTTng to use it as a flight-recorder from which I can snapshot traces on demand (potentially multiple times).
What I did to reproduce can also be seen in the reproduce.sh script (I hope, it's self-explanatory) and I also attached the log files (sessiond with -vvv --verbose-consumer, etc.).
Basically, I did:- Start a session in snapshot mode (LTTng version 2.13.7 on x86_64)
- Create 10 ust tracepoints
- Repeatedly create snapshots
- Inspect them with babeltrace2 (actually just count the lines)
What I get is that the first couple of snapshots contain the 10 tracepoints and the later snapshots don't. If I vary the number of snaphots, it also varies.
I did not stop the recording on purpose as I think this should still work (according to the documentation).
If you need more/different data/information, I'm happy to provide that.
Thanks a lot in advance!
Stepan
Files
Updated by Mathieu Desnoyers over 1 year ago
Yes, this is expected due to the current implementation. Please refer to this discussion:
https://lists.lttng.org/pipermail/lttng-dev/2016-December/026799.html