Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1647

[Plasma] Potential bug when reading/writing messages.

    XMLWordPrintableJSON

Details

    Description

      When we write the "length" field, it is an int64_t. See https://github.com/apache/arrow/blob/dc129d60fbffbf3a5b71b1f7987f7dab948b3d61/cpp/src/plasma/io.cc#L63.

      However, when we read the "length" field, it is a size_t. See https://github.com/apache/arrow/blob/dc129d60fbffbf3a5b71b1f7987f7dab948b3d61/cpp/src/plasma/io.cc#L98.

      I'm not sure if this is a bug, but it looks like it might be. And I suspect there is an issue somewhere in this area because a couple Ray users on non-standard platforms have reported issues with a check failure at https://github.com/apache/arrow/blob/dc129d60fbffbf3a5b71b1f7987f7dab948b3d61/cpp/src/plasma/io.cc#L94.

      See https://github.com/ray-project/ray/issues/1008.

      Attachments

        Issue Links

          Activity

            People

              robertnishihara Robert Nishihara
              robertnishihara Robert Nishihara
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: