On 4/12/2016 5:49 AM, Markus Jelsma wrote: > Hi - i've just created a 3 shard 3 replica collection on Solr 6.0.0 and we > noticed something odd, the hashing ranges don't make sense (full state.json > below): > shard1 Range: 80000000-d554ffff > shard2 Range: d5550000-2aa9ffff > shard3 Range: 2aaa0000-7fffffff > > We've also noticed ranges not going from 0 to ffffffff for a 5.5 create > single shard collection. Anothercollection created on an older (unknown) > release has correct shard ranges. Any idea what's going on?
The hex value 80000000 in a Java integer is equivalent to -2147483648 (Integer.MIN_VALUE) -- numeric types in Java are signed. The hex value 7fffffff is 2147483647 (Integer.MAX_VALUE). Thus the hash range goes from 80000000 to 7fffffff, with zero in the middle. This is not a new development in 6.0.0 -- it's been this way for the entire life of SolrCloud (since 4.0-ALPHA). Thanks, Shawn