Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2110

SocketTimeoutErrorTest.testErrorWhileDoingPut randomly failing

    XMLWordPrintable

Details

    Description

      See http://goo.gl/qbFML

      org.infinispan.client.hotrod.exceptions.TransportException:: java.net.SocketTimeoutException
      	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:184)
      	at org.infinispan.client.hotrod.impl.protocol.Codec10.readHeader(Codec10.java:84)
      	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:78)
      	at org.infinispan.client.hotrod.impl.operations.AbstractKeyValueOperation.sendPutOperation(AbstractKeyValueOperation.java:72)
      	at org.infinispan.client.hotrod.impl.operations.PutOperation.executeOperation(PutOperation.java:52)
      	at org.infinispan.client.hotrod.impl.operations.PutOperation.executeOperation(PutOperation.java:41)
      	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:68)
      	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:220)
      	at org.infinispan.CacheSupport.put(CacheSupport.java:53)
      	at org.infinispan.client.hotrod.SocketTimeoutErrorTest.testErrorWhileDoingPut(SocketTimeoutErrorTest.java:105)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
      	at org.testng.TestRunner.runWorkers(TestRunner.java:1147)
      	at org.testng.TestRunner.privateRun(TestRunner.java:749)
      	at org.testng.TestRunner.run(TestRunner.java:600)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
      	at org.testng.SuiteRunner.access$000(SuiteRunner.java:34)
      	at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:351)
      	at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:147)
      	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)
      Caused by: java.net.SocketTimeoutException
      	at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)
      	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:86)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)

      The test could be reduced to simply expecting the socket, the put calls after that are not really necessary.

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: