Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

syyhao1994
Copy link
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
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
Copy link
Member

vcaputo commented Feb 17, 2021

Nice catch!

@poettering
Copy link
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.

None yet

4 participants