Describe the bug, including details regarding any error messages, version, and platform.
I encountered the problem in acero pipeline first, however i narrowed it down to DatasetWriter getting stuck in pause while concurrent calls to WriteRecordBatch are executed.
The locked state is due to rows_in_flight_throttle.backpressure_.current_value becomes huge value(unsigned negative).
This is caused by Release being called while current_value_==0
I created testcase that reproduces the problem fairly often.
Component(s)
C++