BryanCutler opened a new issue, #38096:
URL: https://github.com/apache/arrow/issues/38096

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   If the FlightStream has metadata and ends up being closed twice, the 
metadata buffer will decrement the reference count below zero and throw an 
error.
   
   ```
   java.lang.IllegalStateException: RefCnt has gone negative
        at 
org.apache.arrow.util.Preconditions.checkState(Preconditions.java:458)
        at org.apache.arrow.memory.BufferLedger.release(BufferLedger.java:130)
        at org.apache.arrow.memory.BufferLedger.release(BufferLedger.java:104)
        at org.apache.arrow.memory.ArrowBuf.close(ArrowBuf.java:1044)
        at org.apache.arrow.util.AutoCloseables.close(AutoCloseables.java:97)
        at org.apache.arrow.flight.FlightStream.close(FlightStream.java:208)
   ```
   
   ### Component(s)
   
   Java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to