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

CrcCheckChanceTest.testChangingCrcCheckChance fails with stack overflow

    XMLWordPrintableJSON

Details

    • Low

    Description

      http://cassci.datastax.com/job/trunk_utest/212/testReport/junit/org.apache.cassandra.cql3/CrcCheckChanceTest/testChangingCrcCheckChance/

      java.lang.StackOverflowError
      	at org.apache.cassandra.io.compress.CompressionParameters.validateCrcCheckChance(CompressionParameters.java:138)
      	at org.apache.cassandra.io.compress.CompressionParameters.setCrcCheckChance(CompressionParameters.java:110)
      	at org.apache.cassandra.io.compress.CompressionParameters.setCrcCheckChance(CompressionParameters.java:114)
      	at org.apache.cassandra.io.compress.CompressionParameters.setCrcCheckChance(CompressionParameters.java:114)
      	at org.apache.cassandra.io.compress.CompressionParameters.setCrcCheckChance(CompressionParameters.java:114)
      

      The code is

          public void setCrcCheckChance(double crcCheckChance) throws ConfigurationException
          {
              validateCrcCheckChance(crcCheckChance);
              this.crcCheckChance = crcCheckChance;
      
              if (liveMetadata != null)
                  liveMetadata.compressionParameters.setCrcCheckChance(crcCheckChance);
          }
      

      Looks like it is just following itself circularly. Should definitely add an assertion that they are not the same compression parameters. Will run it in a loop for a while to see if it reproduces.

      Attachments

        1. fix.txt
          2 kB
          T Jake Luciani

        Activity

          People

            tjake T Jake Luciani
            aweisberg Ariel Weisberg
            T Jake Luciani
            Ariel Weisberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: