cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajanarayanan Thottuvaikkatumana (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-7124) Use JMX Notifications to Indicate Success/Failure of Long-Running Operations
Date Wed, 12 Nov 2014 23:35:36 GMT


Rajanarayanan Thottuvaikkatumana commented on CASSANDRA-7124:

If we change the return type of parallelAllSSTableOperation,  one more challenge is that down
the execution chain, at the calling level where the "forceKeyspaceCleanup" method is called,
it expects an int return value. So till this point you cannot bubble up the Future object
collection. Somewhere you have to drop that and return an int. In the case of the repair command,
it starts the execution of a thread and then it increments a new AtomicInteger() and returns
that number as the return value. So wouldn't it be better in the parallelAllSSTableOperation
method itself we return something like and AtomicInteger() or something like that? So that
we will not have issues down the line. 

Sorry about the long mails. I want to make sure that we do it right in the first place it
self. Thanks

> Use JMX Notifications to Indicate Success/Failure of Long-Running Operations
> ----------------------------------------------------------------------------
>                 Key: CASSANDRA-7124
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Tyler Hobbs
>            Assignee: Rajanarayanan Thottuvaikkatumana
>            Priority: Minor
>              Labels: lhf
>             Fix For: 3.0
>         Attachments: cassandra-trunk-temp-7124.txt
> If {{nodetool cleanup}} or some other long-running operation takes too long to complete,
you'll see an error like the one in CASSANDRA-2126, so you can't tell if the operation completed
successfully or not.  CASSANDRA-4767 fixed this for repairs with JMX notifications.  We should
do something similar for nodetool cleanup, compact, decommission, move, relocate, etc.

This message was sent by Atlassian JIRA

View raw message