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

ArrayIndexOutOfBoundsException in nodetool cfhistograms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.3
    • Tool/nodetool
    • None
    • OSX

    • Normal

    Description

      When running nodetool cfhistograms on 2.1-HEAD, I am seeing the following exception:

      04:02 PM:~/cstar/cassandra[cassandra-2.1*]$ bin/nodetool cfhistograms keyspace1 standard1
      objc[58738]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
      error: 0
      -- StackTrace --
      java.lang.ArrayIndexOutOfBoundsException: 0
      	at org.apache.cassandra.utils.EstimatedHistogram.newOffsets(EstimatedHistogram.java:75)
      	at org.apache.cassandra.utils.EstimatedHistogram.<init>(EstimatedHistogram.java:60)
      	at org.apache.cassandra.tools.NodeTool$CfHistograms.execute(NodeTool.java:946)
      	at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:250)
      	at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:164)

      I can reproduce this with these simple steps:
      Start a new C* 2.1-HEAD node
      Run cassandra-stress write n=10000
      Run nodetool cfhistograms keyspace1 standard1

      Attachments

        1. CASSANDRA-8514-trunk.txt
          7 kB
          Benjamin Lerer
        2. CASSANDRA-8514-V3.txt
          4 kB
          Benjamin Lerer
        3. CASSANDRA-8514-V2.txt
          7 kB
          Benjamin Lerer
        4. cassandra-2.1-8514-1.txt
          0.6 kB
          Jimmy Mårdell

        Activity

          People

            blerer Benjamin Lerer
            philipthompson Philip Thompson
            Benjamin Lerer
            Jonathan Ellis
            Philip Thompson Philip Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: