cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13010) nodetool compactionstats should say which disk a compaction is writing to
Date Tue, 21 Feb 2017 07:02:44 GMT

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

Jeff Jirsa commented on CASSANDRA-13010:
----------------------------------------

That's great to hear, [~alourie]! 

There's a quick intro for [how to contribute|http://cassandra.apache.org/doc/latest/development/patches.html]
on the site. I'm not sure how much guidance you need, but I'll try to give you a  REALLY quick
intro - feel free to ask for more (or less) as appropriate:

{{nodetool}} is the general administrative tool that most cassandra operators use. It connects
to cassandra primarily using JMX. 
{{nodetool compactionstats}} uses the {{CompactionManager}} MBean to call [getCompactions|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tools/nodetool/CompactionStats.java#L70]
 , which basically [returns a list of maps|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/compaction/CompactionManager.java#L1857]
(where the map comes from a [CompactionInfo$Holder|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/compaction/CompactionInfo.java#L135]
) - you'll need to include the directory as an element in that map so that the {{nodetool}}
command can print it out nicely. 

> nodetool compactionstats should say which disk a compaction is writing to
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13010
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13010
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Jon Haddad
>              Labels: lhf
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message