You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2015/04/13 04:59:12 UTC
[jira] [Created] (IGNITE-731) ClusterGroup.forRandom() should
return empty projection in case of empty source projection
Alexey Kuznetsov created IGNITE-731:
---------------------------------------
Summary: ClusterGroup.forRandom() should return empty projection in case of empty source projection
Key: IGNITE-731
URL: https://issues.apache.org/jira/browse/IGNITE-731
Project: Ignite
Issue Type: Task
Components: general
Affects Versions: sprint-3
Reporter: Alexey Kuznetsov
Fix For: sprint-4
I found that ClusterGroup.forRandom() is inconsistent for me.
If I try to take forRandom() on empty cluster group
it throws "java.lang.IllegalArgumentException: n must be positive"
I think forRandom() should return empty cluster group in order to not check if source projection is empty.
Or at least throws exception with meaningful text.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)