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

[Plasma][C++] Serialization tests resort to memcpy to check equality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • C++ - Plasma
    • None

    Description

      1: /tmp/arrow-0.13.0.Q4czW/apache-arrow-0.13.0/cpp/src/plasma/test/serialization_tests.cc:193: Failure
      1: Expected equality of these values:
      1:   memcmp(&plasma_objects[object_ids[0]], &plasma_objects_return[0], sizeof(PlasmaObject))
      1:     Which is: 45
      1:   0
      1: [  FAILED  ] PlasmaSerialization.GetReply (0 ms)
      

      The source of the problem is the random_plasma_object stack allocated object. As a fix, I propose that PlasmaObject implements the `operator==` method and drops the memcpy equality check.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fsaintjacques Francois Saint-Jacques
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: