Caideyipi commented on PR #18626:
URL: https://github.com/apache/iotdb/pull/18626#issuecomment-5867832653

   Implementation mechanism summary: On the ConfigNode, 
`getTableForModification` checks `TableSchemaDetails` and rejects operations on 
a PRE_DELETE table, pre-deleted columns, or pre-altered columns. `SHOW TABLES` 
excludes PRE_CREATE only, while `DESC` uses the complete schema view. On the 
DataNode, the added `previousTableMap` stores a per-database/per-table snapshot 
of the pre-update `TsTable`, captured with `putIfAbsent` before publishing the 
pending schema. This is needed because a concurrent fetch can promote the 
pending entry out of `specialStatusMap` into `databaseTableMap`, so rollback 
cannot reconstruct the old schema from the pending map. Rollback restores the 
snapshot when available; after restart, a `NonCommittableTsTable` marker makes 
the cache evict the uncertain entry and fetch canonical ConfigNode state. 
Commit, drop, and cache invalidation clean up the snapshots. Separately, the 
write validator checks pre-deleted columns once per request on the 
missing-column path, 
 covering INSERT and TsFile loading without an extra RPC for existing-column 
writes.


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