ZhangYu0123 opened a new issue #4311:
URL: https://github.com/apache/incubator-doris/issues/4311


   **problem**
   Compaction policy is always triggered automatically. So we can not control 
the compaction task when we want to compact rowsets of a tablet.
   
   **Solution**
   Add restapi to be which do compaction task by manual trigger.  
   **request param**
   
   - tablet_id
   - schema_hash
   - compact_type ( base or cumulative)
   
   **response result**
   {
       "status": "Fail",
       "msg": "fail to execute compaction, error = -2000"
   }
   
   The process is as follows:
   (1) param check,  req_tablet_id、 req_schema_hash、compact_type
   (2) fetch the tablet by tablet_id and schema_hash
   (3) execute compaction task by async
   (4) wait for result for 2 seconds and fetch result
        when excceed 2 seconds, return success
   
   
   


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to