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

Create pos file directory if it doesn't exist #2223

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

adammw
Copy link
Contributor

@adammw adammw commented Dec 5, 2018

We recently encountered an issue where the subdirectory the pos_file should be written to didn't exist, causing the in_tail plugin to emit an exception and crash fluentd, resulting in a crash loop. The process had permission to write to the parent directory so it could have easily created the directory and avoided an outage. This change adds a mkdir_p call to create the directory if it detects that the directory the pos_file is in doesn't exist.

/cc @repeatedly

Copy link

@grosser grosser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
@repeatedly repeatedly merged commit ac2436c into fluent:master Dec 6, 2018
@repeatedly
Copy link
Member

Thanks!

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.

3 participants