pengxiangyu commented on code in PR #12597: URL: https://github.com/apache/doris/pull/12597#discussion_r970510670
########## be/src/olap/rowset/segment_v2/segment.cpp: ########## @@ -52,6 +52,7 @@ Status Segment::open(io::FileSystem* fs, const std::string& path, const std::str cache_path, config::file_cache_alive_time_sec, file_reader, config::file_cache_type); segment->_file_reader = cache_reader; + cache_reader->init_cache_stats(is_query, stats); Review Comment: Segment is reused, stats need to be reset to 0 for each query. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org