[ 
https://issues.apache.org/jira/browse/CASSANDRA-18377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708102#comment-17708102
 ] 

David Capwell commented on CASSANDRA-18377:
-------------------------------------------

looking at the code I think the following is happening...

operation is success, so notify the callback
Callback throws exception, this triggers the fail method to be seen

If this is true (not sure what else could cause this) then the root problem is 
the callback exception... I changed the logging to show the exception, but 
that's in CASSANDRA-18364 which isn't merged yet

> CEP-15 (Accord) AsyncOperation can not fail as it has already reached FINISHED
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18377
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18377
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Accord
>            Reporter: David Capwell
>            Priority: Normal
>             Fix For: 5.x
>
>
> {code}
> java.lang.IllegalArgumentException: Unexpected state FINISHED
>       at accord.utils.Invariants.illegalArgument(Invariants.java:54)
>       at accord.utils.Invariants.checkArgument(Invariants.java:202)
>       at 
> org.apache.cassandra.service.accord.async.AsyncOperation.fail(AsyncOperation.java:182)
>       at 
> org.apache.cassandra.service.accord.async.AsyncOperation.run(AsyncOperation.java:273)
> {code}
> And
> {code}
> java.lang.IllegalArgumentException: Unexpected state FINISHED
>       at accord.utils.Invariants.illegalArgument(Invariants.java:54)
>       at accord.utils.Invariants.checkArgument(Invariants.java:202)
>       at 
> org.apache.cassandra.service.accord.async.AsyncOperation.fail(AsyncOperation.java:182)
>       at 
> org.apache.cassandra.service.accord.async.AsyncOperation.run(AsyncOperation.java:273)
>       at 
> org.apache.cassandra.service.accord.async.AsyncOperation.callback(AsyncOperation.java:157)
>       at 
> accord.utils.async.AsyncCallbacks.lambda$null$0(AsyncCallbacks.java:31)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to