ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noam Liran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2192) Calling forOldest() on an empty cluster group raises a NullPointerException
Date Thu, 17 Dec 2015 11:39:46 GMT
Noam Liran created IGNITE-2192:
----------------------------------

             Summary: Calling forOldest() on an empty cluster group raises a NullPointerException
                 Key: IGNITE-2192
                 URL: https://issues.apache.org/jira/browse/IGNITE-2192
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 1.5, 1.4
            Reporter: Noam Liran


Easy to reproduce and fix:
{code}
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.apache.ignite.cluster.ClusterGroup;
import org.apache.ignite.configuration.IgniteConfiguration;

/**
 * Created by noliran on 17/12/2015.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Ignite ignite = Ignition.start(new IgniteConfiguration());
        ClusterGroup clusterGroup = ignite.cluster().forAttribute("nonexistent", "value").forOldest();
        // Exception was just raised
    }
}
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message