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

test: add tiny wait not to lose globbed entries #3316

Merged
merged 1 commit into from Apr 6, 2021

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Apr 6, 2021

Which issue(s) this PR fixes:

Related #3263

What this PR does / why we need it:

In busy loop with wait_flush, there may be a case that Dir.glob() lose
existing entries under target directory in some test cases.

As a result Timeout::Error: execution expired will be raised.

These failures in test/plugin/test_output_as_buffered_backup
are observed with Ruby 3.0 on Windows.

Docs Changes:

N/A

Release Note:

N/A

In busy loop, there may be a case that Dir.glob() lose
existing entries under target directory.

Above situation is observed with Ruby 3.0 on Windows.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys
Copy link
Contributor Author

kenhys commented Apr 6, 2021

Timeout::Error: execution expired
<internal:dir>:135:in `glob'
./test/plugin/test_output_as_buffered_backup.rb:175:in `block in wait_flush'
./test/plugin/test_output_as_buffered_backup.rb:112:in `block in waiting'

It seems that the above error doesn't occur.

@ashie ashie merged commit 4b1ee63 into fluent:master Apr 6, 2021
@kenhys kenhys deleted the avoid-busy-loop-win branch April 7, 2021 02:45
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.

None yet

2 participants