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

When compaction gets interrupted, the exception should include the compactionId

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0-beta3
    • Component/s: Local/Compaction
    • Labels:
      None

      Description

      When we log in compaction we use the compactionId (or taskId), because of this we can figure out the start and end log lines for compaction. The issue is, when you interrupt a compaction task, we don’t log the compactionId, we instead log the tableId; for this reason it is much harder to attribute the interrupt to a single compactionId

      Examples

      INFO  2020-07-15T18:04:51,670 [CompactionExecutor:144057] org.apache.cassandra.db.compaction.CompactionTask:158 - Compacting (5a463760-c700-11ea-8982-13c71a558319) [data/ks/table/ma-27-Data.db:level=0, data/ks/table/
      ma-24-Data.db:level=0, ]
      INFO  2020-07-15T18:33:47,550 [CompactionExecutor:144057] org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor:1942 - Compaction interrupted: Compaction@057aa994-c35b-39ec-b74d-33fba2d13bbc(ks, table, 3105436904/8658590553)bytes
      

        Attachments

          Activity

            People

            • Assignee:
              yifanc Yifan Cai
              Reporter:
              dcapwell David Capwell
              Authors:
              Yifan Cai
              Reviewers:
              Caleb Rackliffe, David Capwell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 3h 50m
                3h 50m