From issues-return-73664-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Mon Sep 3 17:08:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9F644180647 for ; Mon, 3 Sep 2018 17:08:04 +0200 (CEST) Received: (qmail 71845 invoked by uid 500); 3 Sep 2018 15:08:03 -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 71836 invoked by uid 99); 3 Sep 2018 15:08:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2018 15:08:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6A0821A0E7D for ; Mon, 3 Sep 2018 15:08:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id mG_u-EUbZ1kw for ; Mon, 3 Sep 2018 15:08:02 +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 99A5E5F47B for ; Mon, 3 Sep 2018 15:08:01 +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 C4165E0DAA for ; Mon, 3 Sep 2018 15:08:00 +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 6FB8B26B58 for ; Mon, 3 Sep 2018 15:08:00 +0000 (UTC) Date: Mon, 3 Sep 2018 15:08:00 +0000 (UTC) From: "Evgenii Zhuravlev (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-9425) NPE on index rebuild MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-9425?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 02269#comment-16602269 ]=20 Evgenii Zhuravlev commented on IGNITE-9425: ------------------------------------------- Fix look good to me > NPE on index rebuild > -------------------- > > Key: IGNITE-9425 > URL: https://issues.apache.org/jira/browse/IGNITE-9425 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.6 > Reporter: Dmitry Karachentsev > Assignee: Dmitry Karachentsev > Priority: Major > Fix For: 2.7 > > > Summary: > This issue is seen when we have two caches mapped to two different region= s (one with persistence and one without persistence) > The client-side config should have the cache definitions > The server-side config should have the data regions only > Affinity should be defined on the cache without persistence > We need to populate the data into both the caches and then restart the se= rver and clients > The issue will be seen when the client reconnects. > Workaround: > Add the cache configurations (for the caches without persistence) to the = server-side config. > Steps to reproduce: > Ignite server > - region1 (with persistence) > - region2 (without persistence) > client > - cache1a from region1 =E2=80=93 with custom affinity > - cache2a fom region2 =E2=80=93 with custom affinity > 1. Populate data in both cache1a and cache2a. > 2. Restart ignite server. It knows about cache1a from the persistent stor= e. It doesn=E2=80=99t know about cache2a. > 3. Restart client. When it connects to ignite, the server sees a nullpoin= ter > {noformat} > java.lang.NullPointerException > at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatab= aseSharedManager$11.apply(GridCacheDatabaseSharedManager.java:1243) > at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatab= aseSharedManager$11.apply(GridCacheDatabaseSharedManager.java:1239) > at org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListene= r(GridFutureAdapter.java:383) > at org.apache.ignite.internal.util.future.GridFutureAdapter.listen(GridFu= tureAdapter.java:353) > at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatab= aseSharedManager.rebuildIndexesIfNeeded(GridCacheDatabaseSharedManager.java= :1239) > at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.= GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java= :1711) > at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.= GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java= :126) > at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFu= tureAdapter.java:451) > at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.= GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:7= 29) > at org.apache.ignite.internal.processors.cache.GridCachePartitionExchange= Manager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419) > at org.apache.ignite.internal.processors.cache.GridCachePartitionExchange= Manager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299) > at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:= 110) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)