fix(sql): memory leak when querying a table which is being ALTERed concurrently#6055
fix(sql): memory leak when querying a table which is being ALTERed concurrently#6055bluestreak01 merged 3 commits intomasterfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
[PR Coverage check]😞 fail : 0 / 5 (00.00%) file detail
|
In rare cases where queries execute while a table is being ALTERed simultaneously, memory could leak during internal query retries. This edge case only affected systems with concurrent schema modifications and queries on the same table. While queries completed successfully through automatic retries, memory from failed attempts was not released.
Implementation details
The issue occurred when the SQL compiler attempted to create a filter during query compilation:
TableReferenceOutOfDateException