Description
Writing an array of zero length causes the following AssertionError:
java.lang.AssertionError: 0 at org.apache.ignite.internal.processors.hadoop.shuffle.streams.HadoopOffheapBuffer.move(HadoopOffheapBuffer.java:95) at org.apache.ignite.internal.processors.hadoop.shuffle.streams.HadoopDataOutStream.move(HadoopDataOutStream.java:55) at org.apache.ignite.internal.processors.hadoop.shuffle.collections.HadoopMultimapBase$AdderBase$1.move(HadoopMultimapBase.java:206) at org.apache.ignite.internal.processors.hadoop.shuffle.streams.HadoopDataOutStream.write(HadoopDataOutStream.java:70) at org.apache.hadoop.io.BytesWritable.write(BytesWritable.java:187) ...
Suggested fix is to change the assertion to
assert size >= 0 : size;