Wind River Support Network


LIN1021-3197 : sd_journal_next returns one entry per journal file after sd_journal_seek_tail

Created: Mar 31, 2022    Updated: Nov 22, 2022
Resolved Date: Oct 17, 2022
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace



Steps to Reproduce

The following systemd issue has been reported by the community:
It seems to be an older report:

To put it shortly, it appears that calling sd_journal_next() after calling sd_journal_seek_tail(), returns some older entries that are not correlated with anything that might have appeared since the sd_journal_seek_tail() call. The report noticed that sd_journal_next() will return one entry per journal in the above scenario.

There is a workaround for this, namely to use sd_journal_previous_skip (..., 1) call after
the sd_journal_seek_tail:
Live chat