Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E84BB200D3C for ; Tue, 14 Nov 2017 12:17:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E644B160BF4; Tue, 14 Nov 2017 11:17:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 382F11609EF for ; Tue, 14 Nov 2017 12:17:07 +0100 (CET) Received: (qmail 11270 invoked by uid 500); 14 Nov 2017 11:17:06 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 11261 invoked by uid 99); 14 Nov 2017 11:17:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 11:17:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A070918074A for ; Tue, 14 Nov 2017 11:17:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id O7pPaAtWLLDW for ; Tue, 14 Nov 2017 11:17:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2E9A660FBE for ; Tue, 14 Nov 2017 11:17:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C23EBE0E7A for ; Tue, 14 Nov 2017 11:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id CAA202412F for ; Tue, 14 Nov 2017 11:17:00 +0000 (UTC) Date: Tue, 14 Nov 2017 11:17:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-6901) IgniteH2Indexing#rebuildIndexesFromHash should pass old value to indexing engine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Nov 2017 11:17:08 -0000 [ https://issues.apache.org/jira/browse/IGNITE-6901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251251#comment-16251251 ] ASF GitHub Bot commented on IGNITE-6901: ---------------------------------------- GitHub user devozerov opened a pull request: https://github.com/apache/ignite/pull/3027 IGNITE-6901 You can merge this pull request into a Git repository by running: $ git pull https://github.com/gridgain/apache-ignite ignite-6901 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/3027.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3027 ---- commit 1c4a41e54a654023f3327d72ae7e480825c93737 Author: devozerov Date: 2017-11-14T11:16:19Z Fix. ---- > IgniteH2Indexing#rebuildIndexesFromHash should pass old value to indexing engine > -------------------------------------------------------------------------------- > > Key: IGNITE-6901 > URL: https://issues.apache.org/jira/browse/IGNITE-6901 > Project: Ignite > Issue Type: Task > Security Level: Public(Viewable by anyone) > Components: cache, persistence, sql > Reporter: Vladimir Ozerov > Assignee: Alexey Goncharuk > Fix For: 2.4 > > > When index rebuild is triggered, index is updated from the method {{IgniteCacheOffheapManagerImpl.CacheDataStoreImpl.updateIndexes}}. Notice how we always pass {{null}} as previous row value. It breaks recent optimization which use previous value to avoid old row materialization IGNITE-6701, so assertion like this is observed: > {code} > java.lang.AssertionError: Replaced: true > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.query.h2.opt.GridH2Table.update(GridH2Table.java:451) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.store(IgniteH2Indexing.java:581) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.query.GridQueryProcessor.store(GridQueryProcessor.java:1748) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.cache.query.GridCacheQueryManager.store(GridCacheQueryManager.java:406) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.updateIndexes(IgniteCacheOffheapManagerImpl.java:1375) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager$GridCacheDataStore.updateIndexes(GridCacheOffheapManager.java:1242) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.updateIndexes(IgniteCacheOffheapManagerImpl.java:364) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.cache.GridCacheMapEntry.ensureIndexed(GridCacheMapEntry.java:3149) > [00:30:30][org.gridgain:gridgain-ultimate] at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.rebuildIndexesFromHash(IgniteH2Indexing.java:2030) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)