shuwenwei opened a new pull request, #18409:
URL: https://github.com/apache/iotdb/pull/18409

   Cherry-picked from https://github.com/apache/iotdb/pull/18394 ([To dev/1.3] 
clone partial columns of aligned tvlist for query).
   
   Commit: `edeb7c5276`
   
   For queries that touch only a few columns of a wide aligned device, clone 
only the accessed columns of the working `AlignedTVList` instead of the whole 
list, then swap the working list so the unaccessed columns are moved out. This 
dramatically reduces the memory retained by such queries on wide aligned 
devices.
   
   This cherry-pick also carries over the follow-up fixes from the dev/1.3 PR:
   - `prepareTvListMapForQuery` retries under the `memChunk` lock after 
acquiring the candidate's `queryListLock`, so a swapped working list can never 
be operated on while holding a stale lock.
   - Memory reservation is made before clone allocation and rolled back on 
failure; the clone and working-list swap happen atomically under the `memChunk` 
critical section.
   - Non-query columns are released before ownership transfer to the first 
query.
   - Aligned `RamInfo` accounting keeps reservation and cleanup sizes 
consistent.
   
   Adapted to the current master APIs (IFullPath/AlignedFullPath, ModEntry, 
table-model chunk metadata, i18n messages) during conflict resolution.
   


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

Reply via email to