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

incorrect debug message in LeveledManifest.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.6
    • None
    • None

    Description

      https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java line 622.

      logger.debug("Estimating {} compactions to do for {}.{}",
      new Object[]

      {Arrays.asList(estimated), cfs.table.name, cfs.columnFamily}

      );

      It does not print list as intended. Arrays.asList(estimated).toString() results in object reference number, not list itself making debug message useless.

      list should be printed by code like this:

      String delim = "";
      for (Item i : list)

      { sb.append(delim).append(i); delim = ","; }

      Attachments

        Activity

          People

            yukim Yuki Morishita
            hsn Radim Kolar
            Yuki Morishita
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: