Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5410

Invocation of HadoopDataOutStream#write(byte[], int, int) with zero len сauses an AssertionError.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.1
    • hadoop
    • None

    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; 

      Attachments

        Activity

          People

            iveselovskiy Ivan Veselovsky
            iveselovskiy Ivan Veselovsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: