[ https://issues.apache.org/jira/browse/CASSANDRA-18632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17737888#comment-17737888 ]
Raymond Huffman commented on CASSANDRA-18632: --------------------------------------------- For my use case, I'd prefer to get this information from the StreamManagerMBean instead of via a virtual table. What do you think about just using a Cache with a maximum size? {code} Cache<TimeUUID, StreamResultFuture> completedStreams = CacheBuilder.newBuilder().maximumSize(1000).build(); {code} > Save state about completed streams and display in nodetool netstats > ------------------------------------------------------------------- > > Key: CASSANDRA-18632 > URL: https://issues.apache.org/jira/browse/CASSANDRA-18632 > Project: Cassandra > Issue Type: Improvement > Components: Observability/JMX > Reporter: Raymond Huffman > Assignee: Raymond Huffman > Priority: Normal > Fix For: 5.x > > Time Spent: 10m > Remaining Estimate: 0h > > We monitor Bootstraps in progress by polling > StreamManagerMBean.getCurrentStreams(). While this gives us good signal for > how a bootstrap is progressing, we'd also like to check that all streams have > completed successfully when a node has finished bootstrapping. > This patch adds a separate map in StreamManager to track completed streams, > and reports those stream summaries in > StreamManagerMBean.getCompletedStreams() and .getAllStreams() > It also adds an option to nodetool netstats to display completed streams > alongside the current streams. > https://github.com/apache/cassandra/pull/2453 -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org