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

   ## Description
   
   `DROP TABLE` now acknowledges the request after the ConfigNode validates the 
table and persists its procedure. The deletion continues in the background, so 
the client does not wait for data and device removal.
   
   ### Procedure execution
   
   - Route table deletion to a dedicated scheduler and worker, including 
procedure recovery and timeout rescheduling. Other procedures continue using 
the existing worker pool.
   - Preserve synchronous `DROP VIEW` behavior.
   - Return an error if the initial procedure persistence fails.
   
   ### Visibility and progress
   
   - Keep the table visible in `SHOW TABLES` while its metadata is in 
`PRE_DELETE`; `SHOW TABLES DETAILS` shows that status.
   - Add `information_schema.drop_table_procedures` with `database`, 
`table_name`, `procedure_id`, `state`, `progress`, and `error_message`. 
`progress` reports the current deletion stage. Recently completed procedures 
remain visible until the existing procedure retention period expires.
   
   ### Verification
   
   - ConfigNode unit tests: `DropTableProcedureTest` and 
`ClusterSchemaInfoTest` (9 tests passed).
   - Table model integration tests: `IoTDBTableIT#testAsyncDropTableProgress`, 
`IoTDBTableIT#testManageTable`, and `IoTDBDatabaseIT#testInformationSchema` 
passed in a test cluster.
   - Compiled the ConfigNode and DataNode reactor with both English and Chinese 
locales; the final branch also compiled after rebasing onto `origin/master`.
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added unit tests or modified existing tests to cover new code paths.
   - [x] added integration tests.
   - [x] been tested in a test IoTDB cluster.
   
   <hr>
   
   ##### Key changed/added classes (or packages if there are too many classes) 
in this PR
   
   - `ProcedureManager`, `ProcedureExecutor`, and `DropTableProcedure`: 
asynchronous submission, worker isolation, and stage reporting.
   - `InformationSchema` and `InformationSchemaContentSupplierFactory`: 
progress table and query results.
   - ConfigNode Thrift RPC and clients: transport procedure progress to 
DataNodes.
   


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