cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-9156) Make the echo callback idempotent in markAlive
Date Sun, 05 Feb 2017 16:36:41 GMT


Aleksey Yeschenko updated CASSANDRA-9156:
    Fix Version/s:     (was: 3.x)

> Make the echo callback idempotent in markAlive
> ----------------------------------------------
>                 Key: CASSANDRA-9156
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Distributed Metadata
>            Reporter: Stefania
>            Priority: Minor
>             Fix For: 4.x
> As discussed in CASSANDRA-7816, in Gossiper.markAlive we send an echo before calling
realMarkAlive. However sometimes we send multiple echos before we get an answer and as a consequence
realMarkAlive could be called multiple times. 
> We should make the echo callback idempotent, i.e., we should make EndpointState#isAlive
an AtomicBoolean, and use CAS in EndpointState#markAlive and EndpointState #markDead, returning
the CAS result (that is, if it was actually dead and turned alive, and vice-versa): this could
be used by the Gossiper to conditionally execute realMarkAlive.
> This would avoid executing realMarkAlive multiple times.

This message was sent by Atlassian JIRA

View raw message