[
https://issues.apache.org/jira/browse/IGNITE-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexey Kuznetsov updated IGNITE-731:
------------------------------------
Fix Version/s: (was: 1.8)
> 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
> Priority: Minor
>
> 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)