wenzhenghu opened a new issue, #52299:
URL: https://github.com/apache/doris/issues/52299

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master, 3.0, 2.1
   
   ### What's Wrong?
   
   according to the code, query_context is create by:
   ```
   ->BlockFileCache::get_query_context_holder
   ->->BlockFileCache::get_or_set_query_context
   ```
   but no code path has call get_query_context_holder to init it. so, when get 
query_context by `BlockFileCache::get_query_context`,  it will always be nullptr
   
   ### What You Expected?
   
   create and delete query_context in the right code path
   
   ### How to Reproduce?
   
   Since this feature does not print relevant logs or expose related metrics, 
it is not easy to visually determine whether the feature works. Performance 
comparison testing or code inspection would be required.
   
   Given the description in this issue, reviewing the code would be the more 
straightforward approach to verify its implementation.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to