cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Eriksson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-13660) Correctly timed kill -9 can put incremental repair sessions in an illegal state
Date Tue, 04 Jul 2017 06:43:00 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-13660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcus Eriksson updated CASSANDRA-13660:
----------------------------------------
    Status: Ready to Commit  (was: Patch Available)

> Correctly timed kill -9 can put incremental repair sessions in an illegal state
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13660
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13660
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Blake Eggleston
>            Assignee: Blake Eggleston
>             Fix For: 4.0
>
>
> If a node is killed after it has sent a finalize promise message to an incremental repair
coordinator, but before that section of commit log has been synced to disk, it can startup
with the incremental repair session in a previous state, leading the following exception:
> {code}
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid state transition
PREPARED -> FINALIZED
> 	at org.apache.cassandra.repair.RepairMessageVerbHandler.doVerb(RepairMessageVerbHandler.java:201)
~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:67) ~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_112]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_112]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_112]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_112]
> 	at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79)
~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
> Caused by: java.lang.IllegalArgumentException: Invalid state transition PREPARED ->
FINALIZED
> 	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-18.0.jar:?]
> 	at org.apache.cassandra.repair.consistent.LocalSessions.setStateAndSave(LocalSessions.java:452)
~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	at org.apache.cassandra.repair.consistent.LocalSessions.handleStatusResponse(LocalSessions.java:679)
~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	at org.apache.cassandra.repair.RepairMessageVerbHandler.doVerb(RepairMessageVerbHandler.java:188)
~[cie-cassandra-3.0.13.5.jar:3.0.13.5]
> 	... 7 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message