ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Boudnik <...@apache.org>
Subject Re: ClusterGroup.forRandom() inconsistent
Date Sat, 11 Apr 2015 18:04:36 GMT
I think you're right (from a layman standpoint).

Cos

On Sat, Apr 11, 2015 at 09:47AM, Alexey Kuznetsov wrote:
> Hi!
> 
> 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.
> 
> Thoughts?
> 
> -- 
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com

Mime
View raw message