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

   ## Description
   
   Extends #18806 so `information_schema.drop_table_procedures` reports live 
mod file progress while an asynchronous `DROP TABLE` is in `DELETE_DATA`.
   
   ```sql
   SELECT database, table_name, progress,
          written_mod_file_count, remaining_mod_file_count
   FROM information_schema.drop_table_procedures;
   ```
   
   `written_mod_file_count` increases after a distinct mod file has been 
written and closed successfully. `remaining_mod_file_count` counts the pending 
mod files once all participating regions have identified their totals. Shared 
mod files are counted once; TsFiles removed outright are excluded. A drop with 
no mod files reports `0, 0`.
   
   ConfigNode queries the DataNode executing each region and updates the 
targets when deletion retries select another replica, counting each region 
once. Unknown counters remain SQL `NULL`, including unavailable progress RPCs. 
A region that has not started reports zero written with an unknown remaining 
count. The final snapshot is retained with the procedure and serialized 
compatibly with the previous procedure format.
   
   ## Validation
   
   - English and Chinese locale compilation passed.
   - Targeted ConfigNode and DataNode unit tests passed: 57 cases, 56 passed 
and 1 skipped. They cover aggregation, serialization compatibility, consensus 
propagation, shared mod files, live counters during a blocked close, failed 
closes, and zero-mod drops.
   - `IoTDBDropTableModProgressIT` and 
`IoTDBTableIT#testAsyncDropTableProgress` passed with TableSimpleIT and 
TableClusterIT (`HighPerformanceMode`, 1 ConfigNode + 3 DataNodes, data 
replication factor 2).
   - Spotless, Checkstyle, and `git diff --check` passed. Integration-test 
packaging used `-Drat.skip=true` because the existing Go submodule contains 
files rejected by RAT.
   
   This PR has:
   
   - [x] been self-reviewed for concurrent reads and writes.
   - [x] added comments explaining the counter semantics and concurrency.
   - [x] added unit tests and integration tests.
   - [x] been tested in a test IoTDB cluster.
   


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