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

Ilya Shishkov updated IGNITE-25641:
-----------------------------------
    Description: 
{{CacheInterceptor#onBeforePut}} can be invoked twice, and second call occurs 
after committing to external database in {{CacheStoreSession#onSessionEnd}}. In 
case of failure in interceptor during second invocation we will get 
inconsistency between external database and Ignite cache.


  was:
Only {{CacheInterceptor#onBeforePut}} and {{CacheInterceptor#onAfterPut}} were 
tested, but it seems, that it could happen during other {{CacheInterceptor}} 
methods calls.

*Reproducer:*   [^CacheInterceptorFailureTest.patch]

Also, cache operation raises unexpected {{IgniteException}} instead of 
{{CacheException}}.




> Failure in CacheInterceptor#onBeforePut can lead to CacheStore inconsitency
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-25641
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25641
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ilya Shishkov
>            Priority: Major
>              Labels: ise
>
> {{CacheInterceptor#onBeforePut}} can be invoked twice, and second call occurs 
> after committing to external database in {{CacheStoreSession#onSessionEnd}}. 
> In case of failure in interceptor during second invocation we will get 
> inconsistency between external database and Ignite cache.



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

Reply via email to