Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15333

Flaky build failure throwing Connect Exception: Could not connect to server....

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • connect, unit tests
    • None

    Description

      We frequently observe flaky build failure with the following message.  The is from the most recent PR post 3.5.0:

       

      > Task :generator:testClasses UP-TO-DATE
      Unexpected exception thrown.
      org.gradle.internal.remote.internal.MessageIOException: Could not read message from '/127.0.0.1:38354'.
      	at org.gradle.internal.remote.internal.inet.SocketConnection.receive(SocketConnection.java:94)
      	at org.gradle.internal.remote.internal.hub.MessageHub$ConnectionReceive.run(MessageHub.java:270)
      	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
      	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:750)
      Caused by: java.lang.IllegalArgumentException
      	at org.gradle.internal.remote.internal.hub.InterHubMessageSerializer$MessageReader.read(InterHubMessageSerializer.java:72)
      	at org.gradle.internal.remote.internal.hub.InterHubMessageSerializer$MessageReader.read(InterHubMessageSerializer.java:52)
      	at org.gradle.internal.remote.internal.inet.SocketConnection.receive(SocketConnection.java:81)
      	... 6 more
      
      > Task :streams:upgrade-system-tests-26:unitTest
      org.gradle.internal.remote.internal.ConnectException: Could not connect to server [3156f144-9a89-4c47-91ad-88a8378ec726 port:37889, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
      	at org.gradle.internal.remote.internal.inet.TcpOutgoingConnector.connect(TcpOutgoingConnector.java:67)
      	at org.gradle.internal.remote.internal.hub.MessageHubBackedClient.getConnection(MessageHubBackedClient.java:36)
      	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:103)
      	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
      	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
      	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
      Caused by: java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
      	at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:122)
      	at org.gradle.internal.remote.internal.inet.TcpOutgoingConnector.tryConnect(TcpOutgoingConnector.java:81)
      	at org.gradle.internal.remote.internal.inet.TcpOutgoingConnector.connect(TcpOutgoingConnector.java:54)
      	... 5 more 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pnee Philip Nee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: