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

fix: default value for logfile rotation interval #10883

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Mar 24, 2022

The unit of 'd' is not a valid time.Duration unit. Due to the more
strict parsing of durations, this is now correctly failing. Previously
using a value of '1d' would fail silently. If a user wishes to use a
value of days, they need to convert to hours and use '24h' for example
of one day.

Fixes: #10882

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Mar 24, 2022
Copy link
Contributor

@MyaLongmire MyaLongmire left a comment

Choose a reason for hiding this comment

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

It looks good to me. Should we maybe add a sentence stating that it has to be in hours?

The unit of 'd' is not a valid time.Duration unit. Due to the more
strict parsing of durations, this is now correctly failing. Previously
using a value of '1d' would fail silently. If a user wishes to use a
value of days, they need to convert to hours and use '24h' for example
of one day.

Fixes: influxdata#10882
@powersj
Copy link
Contributor Author

powersj commented Mar 25, 2022

Updated PR to allow the previous default, but will continue to fail on any other hour-based duration.

@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Mar 25, 2022
@reimda reimda merged commit fba9769 into influxdata:master Mar 29, 2022
MyaLongmire pushed a commit that referenced this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logfile rotation interval: "0d" default fails to start Telegraf v1.22.0
3 participants