Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C16D19050 for ; Mon, 11 Apr 2016 14:09:26 +0000 (UTC) Received: (qmail 99606 invoked by uid 500); 11 Apr 2016 14:09:26 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 99483 invoked by uid 500); 11 Apr 2016 14:09:25 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 99435 invoked by uid 99); 11 Apr 2016 14:09:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 14:09:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 90EAA2C1F61 for ; Mon, 11 Apr 2016 14:09:25 +0000 (UTC) Date: Mon, 11 Apr 2016 14:09:25 +0000 (UTC) From: "Artem Shutak (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-2973) CacheInterceptor gets mixed user and binary objects in case of 'withKeepBinary' cache and EntryProcessor which sets user object as a value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Artem Shutak created IGNITE-2973: ------------------------------------ Summary: CacheInterceptor gets mixed user and binary objects in case of 'withKeepBinary' cache and EntryProcessor which sets user object as a value Key: IGNITE-2973 URL: https://issues.apache.org/jira/browse/IGNITE-2973 Project: Ignite Issue Type: Bug Affects Versions: 1.5.0.final Reporter: Artem Shutak Methods of {{CacheInterceptor}} gets mixed user and binary objects as params in case of {{withKeepBinary}} cache and if {{EntryProcessor}} sets user object as a value. {{Cache.withKeepBinary().invoke(..)}} and {{EntryProcessor}} which sets user object as value (not {{BinaryObject}}). Then method {{Interceptor.onBeforePut(Entry e, Object newVal)}} gets {{e.getKey()}} and {{e.getValue()}} as {{BinaryObject}}, {{newVal}} as userObject (for ATOMIC cache) or {{BinaryObject}} (for TRANSACTIONAL cache), but {{Interceptor.onAfterPut(Entry e)}} gets {{e.getKey()}} as {{BinaryObject}} and {{e.getValue}} as user object sometimes, but should be {{BinaryObject}}. The issue can be reproduced only with Atomic cache. I think it a little bit tricky to use such inconsistent API and not obvious for user where they can get {{BinaryObject}} and where user object. The same issue can be reproduces for {{invokeAll()}}. Tests on these cases can be found at {{InterceptorWithKeepBinaryCacheTest}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)