[
https://issues.apache.org/jira/browse/CASSANDRA-14987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816985#comment-16816985
]
Alex Deparvu commented on CASSANDRA-14987:
------------------------------------------
Trying to give this a go, some initial work can be seen
[here|https://github.com/stillalex/cassandra/commit/ac5fe544527c43645815118aabdca7d59d90ba32].
If I understand the issue, it would be as simple as using the
{{CompactionInfo.Holder#isStopRequested}} to distinguish an interrupted
compaction.
I think the current code is not enough, we might also need to update the
'compaction_history' table?
I'm not yet sure, but I think the {{CompactionHistory}} stats is based on this
info, so ideally this would also reflect the interrupted state.
> Add metrics for interrupted compactions
> ---------------------------------------
>
> Key: CASSANDRA-14987
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14987
> Project: Cassandra
> Issue Type: Improvement
> Components: Local/Compaction
> Reporter: Marcus Eriksson
> Priority: Normal
> Fix For: 4.x
>
>
> To be able to track how often we interrupt compactions (for example when
> starting anticompactions) we should add a few metrics;
> * number of interrupted compactions
> * number of bytes written by interrupted compactions
> We currently count an interrupted compaction as completed, which should
> change with this
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]