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)

Reply via email to