Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.9.1
    • Fix Version/s: 2.0.12
    • Component/s: Core
    • Labels:
      None
    • Sprint:
      Java P2.1.x
    • PM Priority:
      B

      Description

      We see this NPE in our stress test.

      java.lang.NullPointerException
      at com.datastax.driver.core.ControlConnection.updateLocationInfo(ControlConnection.java:491)
      at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:571)
      at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:360)
      at com.datastax.driver.core.ControlConnection.onRemove(ControlConnection.java:681)
      at com.datastax.driver.core.Cluster$Manager.onRemove(Cluster.java:1840)
      at com.datastax.driver.core.Cluster$Manager.access$1300(Cluster.java:1103)
      at com.datastax.driver.core.Cluster$Manager$9.runMayThrow(Cluster.java:1819)
      at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      There was recent node replacement done on the cassandra 1.2.17 cluster. After the replacement, the old nodes did not go away from system.peers.

      peer | data_center | host_id | rack | release_version | rpc_address | schema_version | tokens
      --------------------------------------------------------------------------------------------------------------------------------------+-------------------------

      ip1 | null | null | null | null | ip1 | null | null
      ip2 | DC1 | null | null | null | ip2 | 395ae73e-b8ab-300a-8f1e-fd25da9c8cf8 | null

      DC/Rack being null there may have caused this NPE.

        Attachments

          Activity

            People

            • Assignee:
              omichallat Olivier Michallat
              Reporter:
              vkasar Vishy Kasar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: