Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-1028

NPE in AntiEntropyService.getNeighbors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None
    • Normal

    Description

      Sometimes, but not always, I see this during a test run:

      [junit] Testsuite: org.apache.cassandra.service.AntiEntropyServiceTest
      [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 3.189 sec
      [junit]
      [junit] ------------- Standard Error -----------------
      [junit] ERROR 10:19:09,743 Error in executor futuretask
      [junit] java.util.concurrent.ExecutionException: java.lang.NullPointerException
      [junit] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
      [junit] at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      [junit] at org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.afterExecute(DebuggableThreadPoolExecutor.java:87)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:888)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      [junit] at java.lang.Thread.run(Thread.java:637)
      [junit] Caused by: java.lang.NullPointerException
      [junit] at java.util.AbstractCollection.addAll(AbstractCollection.java:303)
      [junit] at org.apache.cassandra.service.AntiEntropyService.getNeighbors(AntiEntropyService.java:151)
      [junit] at org.apache.cassandra.service.AntiEntropyService.rendezvous(AntiEntropyService.java:176)
      [junit] at org.apache.cassandra.service.AntiEntropyService.access$100(AntiEntropyService.java:86)
      [junit] at org.apache.cassandra.service.AntiEntropyService$Validator.call(AntiEntropyService.java:487)
      [junit] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      [junit] ... 2 more
      [junit] ------------- ---------------- ---------------

      Ideally it would be nice if this could cause an actual test failure when it happens. Not sure how feasible that is.

      Attachments

        Activity

          People

            stuhood Stu Hood
            jbellis Jonathan Ellis
            Stu Hood
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: