J-HowHuang opened a new pull request, #16376:
URL: https://github.com/apache/pinot/pull/16376

   ## Purpose
   This API allows inquiries of all ongoing and historical tenant rebalance 
jobs for a given tenant.
   
   ## Usage
   Request:
   ```
   GET /tenants/<tenant_name>/rebalanceJobs
   ```
   Response:
   A map of all tenant rebalance job ID to their job metadata, as of the 
metadata in `/CONTROLLER_JOBS/TENANT_REBALANCE` in ZK, whose `tenantName` is 
<tenant_name>
   
   
   ## Example
   ```
   curl -X 'GET' \
     'http://localhost:9000/tenants/DefaultTenant/rebalanceJobs' \
     -H 'accept: application/json'
   ```
   
   ```
   {
     "40160692-2bac-4d1c-a175-d485438e831a": {
       "jobId": "40160692-2bac-4d1c-a175-d485438e831a",
       "tenantName": "DefaultTenant",
       "submissionTimeMs": "1752779583413",
       "jobType": "TENANT_REBALANCE",
       "REBALANCE_PROGRESS_STATS": 
"{\"startTimeMs\":1752779576600,\"completionStatusMsg\":\"Successfully 
rebalanced tenant 
DefaultTenant.\",\"tableStatusMap\":{\"meetupRsvpJson_REALTIME\":\"PROCESSED\",\"meetupRsvp_REALTIME\":\"PROCESSED\",\"upsertMeetupRsvp_REALTIME\":\"Table
 is already 
balanced\",\"githubEvents_REALTIME\":\"PROCESSED\",\"upsertPartialMeetupRsvp_REALTIME\":\"Table
 is already balanced\",\"upsertJsonMeetupRsvp_REALTIME\":\"Table is already 
balanced\",\"fineFoodReviews_REALTIME\":\"Table is already 
balanced\",\"dailySales_REALTIME\":\"PROCESSED\",\"meetupRsvpComplexType_REALTIME\":\"PROCESSED\",\"airlineStats_REALTIME\":\"PROCESSED\"},\"totalTables\":10,\"remainingTables\":0,\"tableRebalanceJobIdMap\":{\"meetupRsvpJson_REALTIME\":\"5f382d3c-b8a1-4581-8007-d4ba93358069\",\"meetupRsvp_REALTIME\":\"6a80fa42-2a6f-40a8-bae4-6aa6c503beaa\",\"upsertMeetupRsvp_REALTIME\":\"915427a6-29ed-4657-aa62-71aad5fd9703\",\"githubEvents_REALTIME\":\"e98012e1-2d1e-4af3-a47f-feb95f8d8b13\
 
",\"upsertPartialMeetupRsvp_REALTIME\":\"8377867e-9601-456a-b521-e2c55fff73ac\",\"upsertJsonMeetupRsvp_REALTIME\":\"6a5b46fb-0973-49ef-8615-8f6874e09037\",\"fineFoodReviews_REALTIME\":\"b74f1e73-33c6-428a-92a7-52c3d6ed7c5c\",\"dailySales_REALTIME\":\"9f5483f5-ffb8-4952-ab39-46b717c6aaff\",\"meetupRsvpComplexType_REALTIME\":\"e4ad9865-c175-47b4-aacb-851e89d9603b\",\"airlineStats_REALTIME\":\"6669ed57-6b7c-45c4-b7d4-0b4c837bc045\"},\"timeToFinishInSeconds\":6}"
     }
   }
   ```


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