-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Subsecond timestamps written as fractions #3463
Labels
bug
Something isn't working
Comments
I'm not sure, but #calc_next_time, #recalc_next_time may cause similar situation, too. require_relative "lib/fluent/plugin_helper/retry_state"
include Fluent::PluginHelper::RetryState
> @retry = retry_state_create("hoge", :exponential_backoff, 30, 100)
> a=@retry.calc_next_time
=> 2021-08-16 13:52:15 46768506850790742099/137438953472000000000 +0900
> a.class
=> Time |
Hmm, it's Time class's behaviour:
|
Hmm, it seems Ruby 2.7 or later's behavior.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I get weird timestamp lines in the log, seems like the sub-seconds part of the timestamps gets printed as a fraction, like in the following:
2021-07-19 12:56:20 +0200 [warn]: #0 failed to flush the buffer. retry_time=9 next_retry_seconds=2021-07-19 13:00:22 24648004639507749129/34359738368000000000 +0200 chunk="5c777a670a11ecf6fe7fe48328099911
this line is produced from fluentd-1.12.3/lib/fluent/plugin/output.rb:1238
To Reproduce
happens all the time when failing to flush buffers
Expected behavior
A sane timestamp, like
next_retry_seconds=2021-07-19 12:52:09.802562942 +0200
Your Environment
Your Configuration
Your Error Log
2021-07-19 12:56:20 +0200 [warn]: #0 failed to flush the buffer. retry_time=9 next_retry_seconds=2021-07-19 13:00:22 24648004639507749129/34359738368000000000 +0200 chunk="5c777a670a11ecf6fe7fe48328099911
Additional context
Nothing more
The text was updated successfully, but these errors were encountered: