-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CI: Flaky "test_next_rotation_occurs_very_fast_while_old_TW_still_waiting_rotate_wait" test #4707
Comments
To debug, I added the following debug code. diff --git a/lib/fluent/plugin/in_tail/position_file.rb b/lib/fluent/plugin/in_tail/position_file.rb
index fb524a9c..8e6515d6 100644
--- a/lib/fluent/plugin/in_tail/position_file.rb
+++ b/lib/fluent/plugin/in_tail/position_file.rb
@@ -264,6 +264,16 @@ def read_inode
end
end
- TargetInfo = Struct.new(:path, :ino)
+ TargetInfo = Struct.new(:path, :ino) do
+ def initialize(path, ino)
+ super
+ puts "[DEBUG] TargetInfo.new: path=#{path.inspect}, ino=#{ino.inspect}"
+ if ino.nil?
+ pp caller.take(20)
+ end
+ @path = path
+ @ino = ino
+ end
+ end
end
end
|
Seems the test will be failed when fluentd/lib/fluent/plugin/in_tail.rb Line 986 in eebc7e1
|
Seems fluentd/test/plugin/test_in_tail.rb Line 3348 in eebc7e1
Seems it is not reflected in its attributes when update inode by file rotation. Seems to be possible to know the inode recorded in the pos_file by referring to |
I think the following error is similar to this issue.
|
Describe the bug
Sometimes, test_next_rotation_occurs_very_fast_while_old_TW_still_waiting_rotate_wait will be failed
To Reproduce
Run CI
Expected behavior
No errors
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: