Thanks DuyHai.

From: DuyHai Doan [mailto:doanduy...@gmail.com]
Sent: 2014年11月14日 21:55
To: user@cassandra.apache.org
Subject: Re: Questiona about node repair

By checking into the source code:

StorageService:
    public void forceTerminateAllRepairSessions() {
        ActiveRepairService.instance.terminateSessions();
    }


ActiveRepairService:
    public void terminateSessions()
    {
        for (RepairSession session : sessions.values())
        {
            session.forceShutdown();
        }
        parentRepairSessions.clear();
    }

RepairSession:
    public void forceShutdown()
    {
        taskExecutor.shutdownNow();
        differencingDone.signalAll();
        completed.signalAll();
    }

On Fri, Nov 14, 2014 at 4:01 AM, Di, Jieming 
<jieming...@emc.com<mailto:jieming...@emc.com>> wrote:
Hi There,

I have a question about Cassandra node repair, there is a function called 
“forceTerminateAllRepairSessions();”, so will the function terminate all the 
repair session in only one node, or it will terminate all the session in a 
ring? And when it terminates all repair sessions, does it just terminate it 
immediately or it just send a terminate signal, and do the real terminate 
later? Thanks a lot.

Regards,
-Jieming-


Reply via email to