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 C929D200CB5 for ; Wed, 12 Jul 2017 13:59:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C7C091660FC; Wed, 12 Jul 2017 11:59:30 +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 1A768166079 for ; Wed, 12 Jul 2017 13:59:29 +0200 (CEST) Received: (qmail 22609 invoked by uid 500); 12 Jul 2017 11:59:29 -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 22600 invoked by uid 99); 12 Jul 2017 11:59:29 -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; Wed, 12 Jul 2017 11:59:29 +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 D5C2A194869 for ; Wed, 12 Jul 2017 11:59:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2qGzpiToMmQG for ; Wed, 12 Jul 2017 11:59:27 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1400962E36 for ; Wed, 12 Jul 2017 11:52:02 +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 2486DE0D28 for ; Wed, 12 Jul 2017 11:52: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 15430246FC for ; Wed, 12 Jul 2017 11:52:00 +0000 (UTC) Date: Wed, 12 Jul 2017 11:52:00 +0000 (UTC) From: "Yevgeniy Ignatyev (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-5123) Ignite.cache(String) returns null in PluginProvider.onIgniteStart() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Jul 2017 11:59:31 -0000 [ https://issues.apache.org/jira/browse/IGNITE-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083854#comment-16083854 ] Yevgeniy Ignatyev commented on IGNITE-5123: ------------------------------------------- [~agoncharuk], Please review my changes. > Ignite.cache(String) returns null in PluginProvider.onIgniteStart() > ------------------------------------------------------------------- > > Key: IGNITE-5123 > URL: https://issues.apache.org/jira/browse/IGNITE-5123 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Nick Pordash > Assignee: Yevgeniy Ignatyev > Fix For: 2.2 > > Attachments: ignite-plugin-failure.zip > > > Given an Ignite node that has pre-configured caches (via IgniteConfiguration.setCacheConfiguration) if you try to obtain a reference to the cache instance in PluginProvider.onIgniteStart() you'll get a null reference. > @Override > public void onIgniteStart() throws IgniteCheckedException { > ignite.cacheNames().forEach(name -> { > assert ignite.cache(name) != null : "Cache is null: " + name; > }); > } -- This message was sent by Atlassian JIRA (v6.4.14#64029)