shuwenwei opened a new pull request, #17699: URL: https://github.com/apache/iotdb/pull/17699
## Summary - Capture the sorted state and row count under the TVList monitor when preparing a working memtable TVList for query. - Keep the query-visible row count consistent with the sorted snapshot so later query sorting does not mutate indices beyond an older iterator snapshot. ## Root Cause The query context lock only protects query ownership metadata, not TVList row count, sorted state, writes, or sort operations. A query could share a currently sorted mutable working TVList while recording a row count from a different moment, allowing a later query sort to reorder indices used by an older iterator. ## Validation Not run, per local workflow instruction. -- 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]
