ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Kuznetsov <akuznet...@gridgain.com>
Subject Re: ClusterGroup.forRandom() inconsistent
Date Mon, 13 Apr 2015 02:59:09 GMT
Created issue: https://issues.apache.org/jira/browse/IGNITE-731

On Sun, Apr 12, 2015 at 1:04 AM, Konstantin Boudnik <cos@apache.org> wrote:

> 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
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message