Skip to content

Conversation

@droberts195
Copy link

The non-ASCII logging test could hang indefinitely if the VM it
was running on stalled for 200ms before reconfiguring the logger
to use the test pipe.

This change makes it more robust. A stall of up to 5 seconds is
now tolerated, but with checks every 50ms to avoid slowing the
test down.

The non-ASCII logging test could hang indefinitely if the VM it
was running on stalled for 200ms before reconfiguring the logger
to use the test pipe.

This change makes it more robust.  A stall of up to 5 seconds is
now tolerated, but with checks every 50ms to avoid slowing the
test down.
@droberts195
Copy link
Author

This is an example of a CI failure due to the problem:

2018-05-22 23:26:39,785 BST [2932] DEBUG CTestTimer.cc@19 +----------------------------------------+
2018-05-22 23:26:39,785 BST [2932] DEBUG CTestTimer.cc@20 |  CLoggerTest::testNonAsciiJsonLogging  |
2018-05-22 23:26:39,785 BST [2932] DEBUG CTestTimer.cc@21 +----------------------------------------+
Build timed out (after 120 minutes). Marking the build as failed.

It's particularly annoying because the Jenkins job times out after 2 hours, so the CI machine is blocked from running anything else during this time.

Copy link

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

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

LGTM

@droberts195 droberts195 merged commit df05942 into elastic:master May 23, 2018
@droberts195 droberts195 deleted the make_logger_test_robust branch May 23, 2018 13:42
droberts195 pushed a commit that referenced this pull request May 23, 2018
The non-ASCII logging test could hang indefinitely if the VM it
was running on stalled for 200ms before reconfiguring the logger
to use the test pipe.

This change makes it more robust.  A stall of up to 5 seconds is
now tolerated, but with checks every 50ms to avoid slowing the
test down.
droberts195 pushed a commit that referenced this pull request May 23, 2018
The non-ASCII logging test could hang indefinitely if the VM it
was running on stalled for 200ms before reconfiguring the logger
to use the test pipe.

This change makes it more robust.  A stall of up to 5 seconds is
now tolerated, but with checks every 50ms to avoid slowing the
test down.
@sophiec20 sophiec20 added :ml and removed :ml labels Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants