Opush
  1. Opush
  2. OP-151

T#11127 Losing connection with Cassandra

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5, 3.1.0
    • Labels:
    • Story Points:
      0.5
    • Rank:
      11
    • Sprint:
      OBM Sprint 2015#2

      Description

      Pre-conditions

      Opush 3.0.4 installed on another server than Cassandra.

      Reproduction steps

      Simulate a shutdown of the network on the Cassandra server.

      tc qdisc add dev eth0 root netem loss 100%
      

      when synchronizing with Opush, an error occurs which is a normal behaviour.

      Then make the network up on the Cassandra server.

      tc qdisc del dev eth0 root
      

      when synchronizing with Opush, no error should occur.

      Current behavior

      An exception is reported in /var/log/opush/opush.log

      11:45:19.408 [ERROR] {com.datastax.driver.core.Cluster} [t/c/r/] Unknown error during reconnection to /10.69.1.149:9042, scheduling retry in 32000 milliseconds
      java.lang.IllegalArgumentException: rpc_address is not a column defined in this metadata
              at com.datastax.driver.core.ColumnDefinitions.getAllIdx(ColumnDefinitions.java:273) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.ColumnDefinitions.getFirstIdx(ColumnDefinitions.java:279) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.ArrayBackedRow.getIndexOf(ArrayBackedRow.java:69) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.AbstractGettableData.getInet(AbstractGettableData.java:169) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.ControlConnection.refreshNodeInfo(ControlConnection.java:429) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.Cluster$Manager$5.onReconnection(Cluster.java:1553) ~[cassandra-driver-core-2.1.2.jar:na]
              at com.datastax.driver.core.AbstractReconnectionHandler.run(AbstractReconnectionHandler.java:92) ~[cassandra-driver-core-2.1.2.jar:na]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25]
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25]
              at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[na:1.7.0_25]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[na:1.7.0_25]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
              at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
      
      1. NOK

      Expected behavior

      No error in logs.

      1. OK

      Additional informations

      This is an issue from Cassandra driver which is already resolved.
      We just have to upgrade our Cassandra driver.
      https://datastax-oss.atlassian.net/browse/JAVA-546

        Activity

        Thomas HILAIRE made changes -
        Field Original Value New Value
        Rank Ranked higher
        Thomas HILAIRE made changes -
        Sprint OBM Sprint 2015#1 [ 25 ]
        Thomas HILAIRE made changes -
        Rank Ranked lower
        Thomas HILAIRE made changes -
        Rank Ranked higher
        David Dolcimascolo made changes -
        Story Points 0.5
        Thomas HILAIRE made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Thomas HILAIRE made changes -
        Status In Progress [ 3 ] In Review [ 10001 ]
        Thomas HILAIRE made changes -
        Status In Review [ 10001 ] Ready To Merge [ 10002 ]
        Resolution Fixed [ 1 ]
        Thomas HILAIRE made changes -
        Status Ready To Merge [ 10002 ] Resolved [ 5 ]
        Thomas HILAIRE made changes -
        Fix Version/s 3.1.0 [ 12504 ]
        Stephane COLSON made changes -
        Assignee Thomas HILAIRE [ thilaire@linagora.com ] Stephane COLSON [ scolson@linagora.com ]
        Stephane COLSON made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Thomas HILAIRE made changes -
        Sprint OBM Sprint 2015#1 [ 25 ] OBM Sprint 2015#2 [ 26 ]

          People

          • Assignee:
            Stephane COLSON
            Reporter:
            Antoine DUPRAT
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile