Skip to content

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

Merged
ashie merged 1 commit into
fluent:masterfrom
kenhys:avoid-busy-loop-win
Apr 6, 2021
Merged

test: add tiny wait not to lose globbed entries#3316
ashie merged 1 commit into
fluent:masterfrom
kenhys:avoid-busy-loop-win

Conversation

@kenhys

@kenhys kenhys commented Apr 6, 2021

Copy link
Copy Markdown
Contributor

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

kenhys commented Apr 6, 2021

Copy link
Copy Markdown
Contributor Author
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.

2 participants