ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Pordash (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5123) Ignite.cache(String) returns null in PluginProvider.onIgniteStart()
Date Mon, 01 May 2017 16:56:04 GMT
Nick Pordash created IGNITE-5123:
------------------------------------

             Summary: 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


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.3.15#6346)

Mime
View raw message