Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8690

Random integration tests failures related to investigate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None

      I've had the 2 issues fail the integration tests on my machine:

      1) testMulticast(hudson.UDPBroadcastThreadTest)hudson.remoting.ProxyException: java.net.SocketTimeoutException: Receive timed out
      	at java.net.PlainDatagramSocketImpl.receive0(Native Method)
      	at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
      	at java.net.DatagramSocket.receive(DatagramSocket.java:725)
      	at hudson.UDPBroadcastThreadTest.receiveAndVerify(UDPBroadcastThreadTest.java:64)
      	at hudson.UDPBroadcastThreadTest.testMulticast(UDPBroadcastThreadTest.java:46)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323)
      	at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226)
      	at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113)
      	at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:250)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

      Logs show

        
      Feb 4, 2011 2:13:43 PM hudson.UDPBroadcastThread run
      WARNING: UDP handling problem
      java.io.IOException: Operation not permitted
              at java.net.PlainDatagramSocketImpl.send(Native Method)
              at java.net.DatagramSocket.send(DatagramSocket.java:625)
              at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:88)
      Feb 4, 2011 2:13:48 PM hudson.util.CharacterEncodingFilter destroy
      

      What I've found interesting is that it seems that only jenkins/hudson exhibits this stack trace. So it's worth having a look at.

      Some issues in different code path but similar stack: JENKINS-7129 JENKINS-6614

      The other one I haven't looked into yet.

      2) testSelectBoxesUnique3(lib.hudson.ListScmBrowsersTest)hudson.remoting.ProxyException: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:529)
      	at java.net.Socket.connect(Socket.java:478)
      	at java.net.Socket.<init>(Socket.java:375)
      	at java.net.Socket.<init>(Socket.java:249)
      	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
      	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
      	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
      	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
      	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:97)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387)
      	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:328)
      	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
      	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
      	at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1539)
      	at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1530)
      	at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1491)
      	at lib.hudson.ListScmBrowsersTest.check(ListScmBrowsersTest.java:32)
      	at lib.hudson.ListScmBrowsersTest.testSelectBoxesUnique3(ListScmBrowsersTest.java:28)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323)
      	at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226)
      	at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113)
      	at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56)
      	at sun.reflect.GeneratedMethodAccessor1004.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:250)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

      In the logs:

      INFO: JNLP slave agent listener started on TCP port 59922
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      INFO: Retrying request
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      INFO: Retrying request
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
      

      I will investigate this further later on.

            Unassigned Unassigned
            lacostej lacostej
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: