It is look like correct implementation.
How do you come to conclusion, which something wrong?
On Mon, Oct 17, 2016 at 6:29 AM, minisoft_rm <minisoft...@hotmail.com>
> Hi Val,
> the reason is that "assignPartitions()" returns same
> "List<List<ClusterNode>>" usually even I start two ignite nodes.
> last Friday, I refactor it as below:[
> public List<List<ClusterNode>> assignPartitions(final
> AffinityFunctionContext affCtx)
> final List<ClusterNode> nodes = affCtx.
> int tmpi = 0;
> final List<List<ClusterNode>> assignments = new
> for (int i = 0; i < 2; i++)
> final List<ClusterNode> partAssignment = new
> if (tmpi < nodes.size() - 1)
> return assignments;
> and it return result like:
> list -> node1;
> list -> node2.
> it is what I want.
> I don't think the original "assignPartitions()" has bug. (there are
> of people use it without error, right?)
> but why "assignPartitions()" returns to me the same node# List ?
> View this message in context: http://apache-ignite-users.
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.