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

   ## Description
   
   Tables and columns can remain in PRE_DELETE while a DROP operation is 
incomplete. Plain SHOW TABLES and DESC currently hide these objects, and 
attempts to write to or recreate them can report that they are missing or 
already exist.
   
   - Include PRE_DELETE tables in SHOW TABLES without DETAILS, while continuing 
to hide PRE_CREATE tables. Keep pre-deleted columns in plain DESC and retain 
the existing presentation of pending type changes.
   - Report that a table or column is being deleted, with guidance to wait or 
retry the DROP. Use SEMANTIC_ERROR so IF NOT EXISTS and automatic schema 
creation cannot suppress these failures as ordinary duplicates. Provide both 
English and Chinese messages.
   - Check pre-deleted columns on the missing-column write path, once per 
request, including INSERT and TsFile loading with automatic schema creation 
disabled. Existing-column writes do not perform an additional RPC.
   - Exclude pre-deleted columns from DataNode cache initialization, refresh, 
and column-extension schemas so these paths cannot restore their writability. 
DESC continues to use the complete metadata.
   
   ## Validation
   
   - 32 targeted unit tests passed across TablePreDeleteTest, 
TableHeaderSchemaValidatorTest, CreateTableProcedureTest, ConfigMTreeTest, and 
DataNodeTableCacheTest.
   - Spotless and Checkstyle passed for the changed modules; English/Chinese 
message keys and placeholders match.
   - Full-reactor English and Chinese `test-compile -DskipTests` passed for the 
affected reactor (Node Commons, DataNode, ConfigNode, and dependencies).
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added unit tests for the changed behavior and cache refresh/recovery 
paths.
   
   No integration cluster was started for this change.
   


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