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

Add more logging around CompactionManager operations

    XMLWordPrintableJSON

Details

    Description

      Whenever a cleanup or garbagecollect operation is issued from nodetool, there is no log statuses for the start and end of the operation at the node level although statuses on individual sstables are captured. Start can be inferred, but it is difficult to know when the operation has completed because there is no log message.

       

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:353 - Starting Remove deleted data for keyspace1.sstable1

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:395 - Finished Remove deleted data for keyspace1.sstable1 successfully

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:353 - Starting Remove deleted data for keyspace1.sstable2

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:364 - No sstables to GARBAGE_COLLECT for keyspace1.sstable2

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:395 - Finished Remove deleted data for keyspace1.sstable2 successfully

       

      This improvement proposes adding additional for start and end statuses log messages for the above operation at the node level. I.e.,

       

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:395 – Starting GARBAGE_COLLECT

      ….

      [INFO ] cluster_id=5 ip_address=127.1.1.1  CompactionManager.java:395 – Completed GARBAGE_COLLECT

      Attachments

        Activity

          People

            milan_k Milan Krisko
            kanmaung Kan Maung
            Milan Krisko, Stefan Miklosovic
            Brad Schoening, Brandon Williams, Kan Maung
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m