Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1785

Check Redis availability on slave

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      Redis does not respond within the timeout:

      Running org.nuxeo.ecm.core.redis.TestRedisUIDSequencer
      main 10:19:32,024 WARN  [CacheServiceImpl] Unregistery leaked contribution default-test-cache
      StorageConfiguration: Deploying JDBC using DatabaseH2
      StorageConfiguration: Deploying a VCS repository
      Nuxeo-PubSub-Redis 10:19:32,878 ERROR [RedisPubSubProvider] Uncaught error on thread Nuxeo-PubSub-Redis
      redis.clients.jedis.exceptions.JedisException: Could not return the resource to the pool
      	at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:114)
      	at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:12)
      	at org.nuxeo.ecm.core.redis.RedisPoolExecutor.execute(RedisPoolExecutor.java:74)
      	at org.nuxeo.ecm.core.redis.RedisFailoverExecutor$1.retry(RedisFailoverExecutor.java:62)
      	at org.nuxeo.ecm.core.redis.retry.Retry.retry(Retry.java:61)
      	at org.nuxeo.ecm.core.redis.RedisFailoverExecutor.executeWithRetryPolicy(RedisFailoverExecutor.java:57)
      	at org.nuxeo.ecm.core.redis.RedisFailoverExecutor.execute(RedisFailoverExecutor.java:43)
      	at org.nuxeo.ecm.core.redis.RedisExecutor.psubscribe(RedisExecutor.java:86)
      	at org.nuxeo.ecm.core.redis.contribs.RedisPubSubProvider$Dispatcher.run(RedisPubSubProvider.java:142)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
      	at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:201)
      	at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40)
      	at redis.clients.jedis.Protocol.process(Protocol.java:132)
      	at redis.clients.jedis.Protocol.read(Protocol.java:196)
      	at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:288)
      	at redis.clients.jedis.Connection.getAll(Connection.java:258)
      	at redis.clients.jedis.Connection.getAll(Connection.java:250)
      	at redis.clients.jedis.BinaryJedis.resetState(BinaryJedis.java:1653)
      	at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:110)
      	... 9 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      	at java.net.SocketInputStream.read(SocketInputStream.java:170)
      	at java.net.SocketInputStream.read(SocketInputStream.java:141)
      	at java.net.SocketInputStream.read(SocketInputStream.java:127)
      	at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:195)
      	... 17 more
      

      If Redis don't reply promptly it is hard to make assertion, this could explain the failure for the previous test where a subcriber receive only one message out of 2

      testSendReceiveMultiInvalidations(org.nuxeo.ecm.core.redis.TestRedisClusterInvalidator)  Time elapsed: 0.055 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<2> but was:<1>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.nuxeo.ecm.core.redis.TestRedisClusterInvalidator.testSendReceiveMultiInvalidations(TestRedisClusterInvalidator.java:118)
      

      Seen:
      https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-master/org.nuxeo.ecm.core$nuxeo-core-redis/969/testReport/junit/org.nuxeo.ecm.core.redis/TestRedisClusterInvalidator/testSendReceiveMultiInvalidations/

      https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-master/org.nuxeo.ecm.core$nuxeo-core-redis/969/console

      on Docker-slave-6f8880a8979b-qa-ovh01.nuxeo.com

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: