[ 
https://issues.apache.org/jira/browse/CASSANDRA-15954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17190968#comment-17190968
 ] 

Caleb Rackliffe commented on CASSANDRA-15954:
---------------------------------------------

+1 after the latest changes

> When compaction gets interrupted, the exception should include the 
> compactionId
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15954
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15954
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local/Compaction
>            Reporter: David Capwell
>            Assignee: Yifan Cai
>            Priority: Normal
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> 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
> {code}
> 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
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to