Skip to content

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

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

Conversation

ncdc
Copy link

@ncdc ncdc commented Dec 21, 2016

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

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

rhatdan commented Dec 21, 2016

bot, add author to whitelist

@rhatdan
Copy link
Member

rhatdan commented Dec 21, 2016

LGTM, but I want @nalind to chime in.

@runcom
Copy link
Collaborator

runcom commented Jan 12, 2017

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