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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment