zclllyybb opened a new pull request, #61593: URL: https://github.com/apache/doris/pull/61593
- Change `_try_close` from `bool` to `std::atomic<bool>` with acquire/release memory ordering - Use `memory_order_acquire` when reading in `_send_batch_process()` (bthread) - Use `memory_order_release` when writing in `_do_try_close()` (pthread) - Remove unused `_close_wait` field This fixes a potential race condition where `_try_close` is written by pthread and read by bthread without proper synchronization. It's ok on x86 so no test added. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
