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

[Java] VectorSchemaRoot should be able to be closed() more than once

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: Java
    • Labels:
      None

      Description

      When working with a VectorSchemaRoot, once it is no longer needed it resources are freed by calling close() followed by then closing the allocator. Sometimes it is needed to close a second time due to complex operations. If the VectorSchemaRoot is closed again after the allocator, it raises an assertion error during clear() because it is trying to allocate an empty buffer, which ends up being destroyed immediately anyway. The close() operation should mean that the object is no longer to be used, so once closed it should not try to reallocate it.

        Attachments

          Activity

            People

            • Assignee:
              bryanc Bryan Cutler
              Reporter:
              bryanc Bryan Cutler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: