Created issue: https://issues.apache.org/jira/browse/IGNITE-731
On Sun, Apr 12, 2015 at 1:04 AM, Konstantin Boudnik <[email protected]> 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
