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

incorrect debug message in LeveledManifest.java

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.1.6
    • Component/s: None
    • Labels:
      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

            • Assignee:
              yukim Yuki Morishita
              Reporter:
              hsn Radim Kolar
              Authors:
              Yuki Morishita
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: