You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/09/30 15:10:43 UTC

[GitHub] gianm commented on a change in pull request #6406: ITTLSTest: Retry on "Connection reset by peer".

gianm commented on a change in pull request #6406: ITTLSTest: Retry on "Connection reset by peer".
URL: https://github.com/apache/incubator-druid/pull/6406#discussion_r221462568
 
 

 ##########
 File path: integration-tests/src/test/java/org/apache/druid/tests/security/ITTLSTest.java
 ##########
 @@ -396,8 +396,9 @@ private void checkFailedAccess(
       catch (RuntimeException re) {
         Throwable rootCause = Throwables.getRootCause(re);
 
-        if (rootCause instanceof IOException && "Broken pipe".equals(rootCause.getMessage())) {
-          if (retries > MAX_BROKEN_PIPE_RETRIES) {
+        if (rootCause instanceof IOException && ("Broken pipe".equals(rootCause.getMessage())
+                                                 || "Connection reset by peer".contains(rootCause.getMessage()))) {
+          if (retries > MAX_CONNECTION_EXCEPTION_RETRIES) {
             Assert.fail(StringUtils.format(
                 "Broken pipe retries exhausted, test failed, did not get %s.",
 
 Review comment:
   Changed the error message.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org