[
https://issues.apache.org/jira/browse/IGNITE-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167092#comment-15167092
]
Semen Boikov commented on IGNITE-2719:
--------------------------------------
Andrey, please take a look at exising test
IgniteCacheCopyOnReadDisabledAbstractTest, GridCacheOnCopyFlagAbstractSelfTest.
It is necessary to test two cases: if copyOnRead=true we do not store
deserialized value in cache and copy it for entry processor/interceptors, if
copyOnRead=false deserialized value is stored in cache.
> Value is not copied in entry processor if optimized marshaller is used
> ----------------------------------------------------------------------
>
> Key: IGNITE-2719
> URL: https://issues.apache.org/jira/browse/IGNITE-2719
> Project: Ignite
> Issue Type: Bug
> Components: cache
> Reporter: Valentin Kulichenko
> Assignee: Andrey Gura
> Priority: Blocker
> Labels: community, important
> Fix For: 1.6
>
> Attachments: CacheEntryProcessorCopySelfTest.java
>
>
> If {{OptimizedMarshaller}} is used, the {{MutableEntry}} passed to entry
> processor contains the same instance that is stored in cache, even if
> {{copyOnRead}} flag is true.
> This happens because {{CacheLazyEntry.getValue()}} method never creates a
> copy.
> Test attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)