XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      "Compactions in a state" metrics (for example compaction_num_working) count the sum of tables/partitions where the last compaction is in that state.

      I propose introducing a new metric about incomplete compactions: i.e. the number of tables/partitions where the last finished compaction* is unsuccessful (failed or "did not initiate"), or where major compaction was unsuccessful then minor compaction succeeded (compaction is not "complete" since major compaction has not succeeded in the time since it should have run).

      Example:

      These compactions ran on a partition:
      major succeeded
      major working
      major failed
      major initiated
      major working
      major failed
      major initiated
      major working
      
      The "compactions in a state" metrics will consider the state of this table: working.
      The "incomplete compactions" metric will consider this: incomplete, since there have been failed compactions since the last succeeded compaction.
      

      Another example:

      These compactions ran on a partition:
      major succeeded
      major failed
      minor failed
      minor succeeded
      
      The "compactions in a state" metrics will consider the state of this table: succeeded.
      The "incomplete compactions" metric will consider this: incomplete, since there hasn't been a major succeeded since major failed.

      Last example:

      These compactions ran on a partition:
      major succeeded
      minor did not initiate
      
      The "compactions in a state" metrics will consider the state of this table: did not initiate.
      The "incomplete compactions" metric will consider this: incomplete, since the last compaction was "did not initiate"

      *finished compaction: state in (succeeded, failed, attempted/did not initiate)

      Attachments

        Issue Links

          Activity

            People

              klcopp Karen Coppage
              klcopp Karen Coppage
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 50m
                  50m