[ 
https://issues.apache.org/jira/browse/BEAM-10506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17159349#comment-17159349
 ] 

Sameer Abhyankar commented on BEAM-10506:
-----------------------------------------

I meant to say that option #2 would just add a try-catch-ignore to the 
assertion in the test itself so a SocketTimeout is not a test failure. The IO 
itself has retries with exponential backoff so it is not a problem. This is a 
test problem in the mock-server library that is used for the unit test.

 

I will proceed with setting the mock-server-client timeout to 10x the average 
for now. Will send a PR shortly.

> Flake / failure in SplunkEventWriterTest > 
> successfulSplunkWriteSingleBatchTest
> -------------------------------------------------------------------------------
>
>                 Key: BEAM-10506
>                 URL: https://issues.apache.org/jira/browse/BEAM-10506
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-splunk, test-failures
>            Reporter: Kenneth Knowles
>            Priority: P1
>              Labels: flake
>
> https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/12391/testReport/junit/org.apache.beam.sdk.io.splunk/SplunkEventWriterTest/successfulSplunkWriteSingleBatchTest/
> {code}
> org.mockserver.client.SocketCommunicationException: Response was not received 
> from MockServer after 20000 milliseconds, to wait longer please use 
> "mockserver.maxSocketTimeout" system property or 
> ConfigurationProperties.maxSocketTimeout(long milliseconds)
>       at 
> org.mockserver.client.NettyHttpClient.sendRequest(NettyHttpClient.java:99)
>       at 
> org.mockserver.client.MockServerClient.sendRequest(MockServerClient.java:183)
>       at 
> org.mockserver.client.MockServerClient.upsert(MockServerClient.java:844)
>       at 
> org.mockserver.client.ForwardChainExpectation.respond(ForwardChainExpectation.java:49)
>       at 
> org.apache.beam.sdk.io.splunk.SplunkEventWriterTest.mockServerListening(SplunkEventWriterTest.java:275)
>       at 
> org.apache.beam.sdk.io.splunk.SplunkEventWriterTest.successfulSplunkWriteSingleBatchTest(SplunkEventWriterTest.java:109)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to