ByteYue opened a new pull request, #21512:
URL: https://github.com/apache/doris/pull/21512

   ## Proposed changes
   The former logic would directly use read_context as segment iterator's 
_context `_context = read_context;`. But if it's invoked by schema change or 
compaction, it would pass one read_context whose stats is nullptr like the 
following picture.
   
![image](https://github.com/apache/doris/assets/43750022/c754b35f-482f-4894-85ec-02b6d79fefe6)
   
   Thus the following file cache statistics assignation would get one invalid 
address `_read_options.io_ctx.file_cache_stats = 
&read_context->stats->file_cache_stats;` which would be the offset for 
file_cache_stats in stats.
   
   This pr would make the read_context->stats always valid to prevent such 
coredump.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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