Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-27 Thread simonw
I have to thank you for bringing it up! :) On Wednesday, March 26, 2014 9:40:26 PM UTC+1, Shinsuke Sugaya wrote: > > Thank you for the investigation and filing it. > > Regards, > shinsuke > > On Thursday, March 27, 2014 12:55:56 AM UTC+9, simonw wrote: >> >> I opened an issue for this: >> https:

Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-26 Thread Shinsuke Sugaya
Thank you for the investigation and filing it. Regards, shinsuke On Thursday, March 27, 2014 12:55:56 AM UTC+9, simonw wrote: > > I opened an issue for this: > https://github.com/elasticsearch/elasticsearch/issues/5559 > > On Wednesday, March 26, 2014 5:53:15 AM UTC+1, Shinsuke Sugaya wrote: >>

Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-26 Thread simonw
I opened an issue for this: https://github.com/elasticsearch/elasticsearch/issues/5559 On Wednesday, March 26, 2014 5:53:15 AM UTC+1, Shinsuke Sugaya wrote: > > Hi > > I encountered the following problem: > > Caused by: java.lang.IndexOutOfBoundsException: index (-2) must not be > negative >

Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-26 Thread simonw
that is actually a bug IMO - Math.abs() can return -1 if it hits Integer.MIN_VALUE this code is just broken - can you open an issue! On Wednesday, March 26, 2014 11:43:20 AM UTC+1, Kevin Wang wrote: > > pickIndex() will return the absolute value of the count, so it won't > return a negative va

Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-26 Thread Shinsuke Sugaya
> int loc = (index + i) % activeShards.size(); index is NOT negative, but (index + i) is negative. Regards, shinsuke 2014年3月26日水曜日 19時43分20秒 UTC+9 Kevin Wang: > > pickIndex() will return the absolute value of the count, so it won't > return a negative value. Can you provide more de

Re: IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-26 Thread Kevin Wang
pickIndex() will return the absolute value of the count, so it won't return a negative value. Can you provide more details? Kevin On Wednesday, March 26, 2014 3:53:15 PM UTC+11, Shinsuke Sugaya wrote: > > Hi > > I encountered the following problem: > > Caused by: java.lang.IndexOutOfBoundsExce

IndexOutOfBoundsException at IndexShardRoutingTable class

2014-03-25 Thread Shinsuke Sugaya
Hi I encountered the following problem: Caused by: java.lang.IndexOutOfBoundsException: index (-2) must not be negative at org.elasticsearch.common.base.Preconditions.checkElementIndex(Preconditions.java:306) at org.elasticsearch.common.base.Preconditions.checkElementIndex(Prec