You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/08/10 09:36:06 UTC

[GitHub] [incubator-doris] ZhangYu0123 opened a new issue #4311: [Proposal] Manually trigger compaction restapi interface

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:
users@infra.apache.org



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


[GitHub] [incubator-doris] ZhangYu0123 closed issue #4311: [Proposal] Manually trigger compaction restapi interface

Posted by GitBox <gi...@apache.org>.
ZhangYu0123 closed issue #4311:
URL: https://github.com/apache/incubator-doris/issues/4311


   


----------------------------------------------------------------
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:
users@infra.apache.org



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