kaijchen opened a new pull request, #39075: URL: https://github.com/apache/doris/pull/39075
## Proposed changes Previously the bvar `g_load_stream_file_writer_cnt` is not accurate when error happens. Some `FileWriters` are not supposed to be closed manually. All `FileWriter` in `LoadStreamWriter` is managed by `std::unique_ptr`. A `FileWriter` should be able to close itself and cleanup storage state on its deconstructor. This PR changes the bvar `g_load_stream_file_writer_cnt` to track deconstruction of `FileWriter`, instead of tracking `FileWriter` close. -- 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]
