[ 
https://issues.apache.org/jira/browse/IGNITE-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yakov Zhdanov updated IGNITE-731:
---------------------------------
    Assignee: Anton Vinogradov

> 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
>            Assignee: Anton Vinogradov
>             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)

Reply via email to