Skip to content

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

Closed
ncdc wants to merge 1 commit into
projectatomic:docker-1.12.4from
ncdc:1.12.4/journald-logdriver-drain-one-more-time-after-follow-ends
Closed

ncdc wants to merge 1 commit into
projectatomic:docker-1.12.4from
ncdc:1.12.4/journald-logdriver-drain-one-more-time-after-follow-ends

Conversation

@ncdc

@ncdc ncdc commented Dec 21, 2016

Copy link
Copy Markdown

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)

@nalind @runcom @rhatdan @smarterclayton @mrunalp @jwhonce

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.
@rh-atomic-bot

Copy link
Copy Markdown

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@rhatdan

rhatdan commented Dec 21, 2016

Copy link
Copy Markdown
Member

bot, add author to whitelist

@rhatdan

rhatdan commented Dec 21, 2016

Copy link
Copy Markdown
Member

LGTM, but I want @nalind to chime in.

@runcom

runcom commented Jan 12, 2017

Copy link
Copy Markdown
Collaborator

I'll close this one since it's against docker-1.12.4 branch (and we're at 1.12.6 now)

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.

4 participants