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

Igor Rudyak commented on IGNITE-6853:
-------------------------------------

I think you can just manually implement analogs of mocks created by Mockito 
(inheriting mock classes from Cassandra Session, Cluster and etc.) and use them 
the same way like you already doing it in your tests.

> Cassandra cache store does not clean prepared statements cache when remove 
> old cassandra session
> ------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-6853
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6853
>             Project: Ignite
>          Issue Type: Bug
>          Components: cassandra
>    Affects Versions: 2.3
>            Reporter: Mikhail Cherkasov
>            Assignee: Jason Man
>            Priority: Major
>              Labels: important
>             Fix For: 2.4
>
>
> Cassandra cache store does not clean prepared statements cache when remove 
> old cassandra session which can lead to:
>  Prepared
> statement cluster error detected, refreshing Cassandra session
> com.datastax.driver.core.exceptions.InvalidQueryException: Tried to execute
> unknown prepared query : 0xcad5832309a512feeb602eec67408130. You may have
> used a PreparedStatement that was created with another Cluster instance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to