Skip to content

journald logs: drain 1 more time at container exit - #291

Closed
tnozicka wants to merge 1 commit into
projectatomic:masterfrom
tnozicka:fix-last-line-of-docker-logs
Closed

tnozicka wants to merge 1 commit into
projectatomic:masterfrom
tnozicka:fix-last-line-of-docker-logs

Conversation

@tnozicka

Copy link
Copy Markdown

resurrected #218 (for master) after @ncdc

I hope it fixes openshift/origin#17747

In the journald log driver, attempt to drain the journal 1 more time
after being told to stop following the log. Due to a possible race
condition, sometimes data is written to the journal at almost the same
time the log watch is closed, and depending on the order of operations,
sometimes you miss the last journal entry.

I'm opening this here for starters so we can discuss. If we decide to proceed with this or something like it, I'll open a pull against docker/docker.

Fixes issues seen in OpenShift e2e tests such as this: openshift/origin#9839 (comment)

/cc @nalind @runcom @rhatdan @smarterclayton @mrunalp @jwhonce @soltysh @mfojtik @deads2k

@runcom

runcom commented Dec 13, 2017

Copy link
Copy Markdown
Collaborator

@nalind PTAL

@runcom

runcom commented Dec 13, 2017

Copy link
Copy Markdown
Collaborator

@tnozicka branch is wrong, you need to open this PR against docker-1.12.6 branch

@tnozicka

tnozicka commented Dec 13, 2017 •

Copy link
Copy Markdown
Author

@tnozicka tnozicka closed this Dec 13, 2017
@tnozicka
tnozicka deleted the fix-last-line-of-docker-logs branch December 13, 2017 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

container logs lose line(s) (the last one)

2 participants