cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-2946) HintedHandoff fails with could not reach schema agreement
Date Tue, 26 Jul 2011 19:22:09 GMT


Brandon Williams commented on CASSANDRA-2946:

+1, what happened was node A never updated it's gossip state, but the other node learned of
its schema version by RPC.  When node B restarted, it no longer knew the schema version for
A, and tried to get it from gossip where it was still old.

bq. if it does we can also change the HH code to use DD.
I don't know about that, having this as a check to make sure this doesn't happen again is
a far easier thing to catch than other "gossip is out of date" problems we might encounter.

> HintedHandoff fails with could not reach schema agreement
> ---------------------------------------------------------
>                 Key: CASSANDRA-2946
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.1
>            Reporter: Richard Low
>            Assignee: Jonathan Ellis
>             Fix For: 0.8.3
>         Attachments: 2946.txt
> To reproduce, have two nodes A and B.
> 1. On node A, create a keyspace with replication factor 1 and add a column family
> 2. Ensure node B has created the keyspace and column family
> 3. Take down node B
> 4. Insert some keys to A at CL.ANY, ensuring some keys should be written to B
> 5. Bring up node B
> 6. When hints are delivered, I get the error:
> ERROR [HintedHandoff:1] 2011-07-25 17:19:14,729 (line 139)
Fatal exception in thread Thread[HintedHandoff:1,1,main]
> java.lang.RuntimeException: java.lang.RuntimeException: Could not reach schema agreement
with / in 60000ms
>         at
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> Caused by: java.lang.RuntimeException: Could not reach schema agreement with /
in 60000ms
>         at org.apache.cassandra.db.HintedHandOffManager.waitForSchemaAgreement(
>         at org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(
>         at org.apache.cassandra.db.HintedHandOffManager.access$100(
>         at org.apache.cassandra.db.HintedHandOffManager$2.runMayThrow(
>         at
>         ... 3 more
> If I use DatabaseDescriptor.getDefsVersion() instead of gossiper.getEndpointStateForEndpoint(FBUtilities.getLocalAddress()).getApplicationState(ApplicationState.SCHEMA)
then the error goes away, and the hints are correctly delivered.
> This may be the same issue as Aaron saw here:,
and may be related to CASSANDRA-2083.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message