py023 commented on code in PR #46920:
URL: https://github.com/apache/doris/pull/46920#discussion_r1914660146


##########
regression-test/suites/fault_injection_p0/test_skip_index_compaction_fault_injection.groovy:
##########
@@ -76,6 +76,49 @@ suite("test_skip_index_compaction_fault_injection", 
"nonConcurrent") {
     }
   }
 
+  def trigger_full_compaction_on_tablets = { tablets ->
+    for (def tablet : tablets) {
+      String tablet_id = tablet.TabletId
+      String backend_id = tablet.BackendId
+      int times = 1
+
+      String compactionStatus;
+      do{
+        def (code, out, err) = 
be_run_full_compaction(backendId_to_backendIP.get(backend_id), 
backendId_to_backendHttpPort.get(backend_id), tablet_id)
+        logger.info("Run compaction: code=" + code + ", out=" + out + ", err=" 
+ err)
+        ++times
+        sleep(2000)
+        compactionStatus = parseJson(out.trim()).status.toLowerCase();
+      } while (compactionStatus!="success" && times<=10 && 
compactionStatus!="e-6010")

Review Comment:
   Is it possible to tune the common compaction function? For instance adding a 
branch 
[here](https://github.com/apache/doris/blob/ef18747deed49a06245a13617419d284f7df8590/regression-test/plugins/plugin_compaction.groovy#L109-L110).



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to