You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2016/08/09 12:33:34 UTC

[jira] [Updated] (IGNITE-731) ClusterGroup.forRandom() should return empty projection in case of empty source projection

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

Pavel Tupitsyn updated IGNITE-731:
----------------------------------
    Fix Version/s:     (was: 1.7)
                   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
>            Assignee: Anton Vinogradov
>            Priority: Minor
>             Fix For: 1.8
>
>
> 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)