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

log Compaction Active tasks in StatusLogger instead of n/a

    XMLWordPrintableJSON

Details

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

    Description

      currently StatusLogger log:

      logger.info(String.format("%-25s%10s%10s",
                                        "CompactionManager", "n/a", CompactionManager.instance.getPendingTasks()));
      

      It'd be great if it could actually log the number of active tasks being processed. Without looking into the code, I thought there was no compaction running when reading the log.

      CompactionManager.java
          public int getActiveCompactions()
          {
              return CompactionExecutor.compactions.size();
          }
      

      Attachments

        1. 3703.txt
          2 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            cywjackson Jackson Chung
            Jonathan Ellis
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: