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

[Plasma] Release objects upon Create

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.13.0
    • Fix Version/s: 2.0.0
    • Component/s: C++ - Plasma
    • Labels:
      None

      Description

      Similar to the way that

      Get(const std::vector<ObjectID>& object_ids, int64_t timeout_ms, std::vector<ObjectBuffer>* out)

       releases the object when the shared_ptr<PlasmaBuffer> inside of ObjectBuffer goes out of scope, the same should happen for

        Status Create(const ObjectID& object_id, int64_t data_size, const uint8_t* metadata,
                      int64_t metadata_size, std::shared_ptr<Buffer>* data);
      

      At the moment people have to remember calling Release() after they created and sealed the object and that can make the use of the C++ API cumbersome.

      Thanks to Anurag Khandelwal for reporting this.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pcmoritz Philipp Moritz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: