Skip to content

journalctl: skipping the repeating entries at the conjunction of .jou… - #18013

Closed
syyhao1994 wants to merge 1 commit into
systemd:mainfrom
syyhao1994:dev1210
Closed

syyhao1994 wants to merge 1 commit into
systemd:mainfrom
syyhao1994:dev1210

Conversation

@syyhao1994

Copy link
Copy Markdown
Contributor

…rnal files
#18005

@github-actions github-actions Bot removed the journal label Jan 19, 2021
Base automatically changed from master to main January 21, 2021 11:55
@poettering

Copy link
Copy Markdown
Member

this hides a bug.

So I think I figured it out: in journal_file_append_entry_internal() we'll pick a seqnum, and then try to insert the journal entry. And if that works, great. But if the journal file would grow too large we fail — but do not revert the seqnum to the old value. thus, after we started a new file, and try to write again the same entry, we'll do so with an even higher seqnum.

So I guess we need to revert to the previous seqnum on failure.

@vcaputo

vcaputo commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

Nice catch!

@poettering

Copy link
Copy Markdown
Member

#18670 got merged, that fixes this. Closing this one.

@poettering poettering closed this Feb 18, 2021
@syyhao1994
syyhao1994 deleted the dev1210 branch November 18, 2022 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants