KKcorps commented on code in PR #15584:
URL: https://github.com/apache/pinot/pull/15584#discussion_r2055523642


##########
pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts:
##########
@@ -1008,6 +1009,12 @@ const rebalanceBrokersForTableOp = (tableName) => {
     return response.data;
   });
 };
+// Runs the RealtimeSegmentValidationManager periodic task for a given table
+const repairTableOp = (tableName, tableType) => {
+  return runPeriodicTask('RealtimeSegmentValidationManager', tableName, 
tableType).then((response) => {
+    return response.data;
+  });
+};

Review Comment:
   done



##########
pinot-controller/src/main/resources/app/pages/TenantDetails.tsx:
##########
@@ -466,6 +466,20 @@ const TenantPageDetails = ({ match }: 
RouteComponentProps<Props>) => {
     const result = await 
PinotMethodUtils.rebalanceBrokersForTableOp(tableName);
     syncResponse(result);
   };
+  
+  const handleRepairTable = () => {
+    setDialogDetails({
+      title: 'Repair Table',
+      content: 'Are you sure want to repair the table?',
+      successCb: () => repairTable()
+    });
+    setConfirmDialog(true);
+  };
+
+  const repairTable = async () => {
+    const result = await PinotMethodUtils.repairTableOp(tableName, tableType);
+    syncResponse(result);
+  };

Review Comment:
   done



-- 
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: commits-unsubscr...@pinot.apache.org

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


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

Reply via email to