LiebingYu opened a new issue, #2889:
URL: https://github.com/apache/fluss/issues/2889

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and 
found nothing similar.
   
   
   ### Description
   
   **Task Overview:**
   
   Currently, `Admin.addServerTag()` and `Admin.removeServerTag()` only support 
specifying tablet servers by their server IDs. This task introduces two new 
overloaded methods that allow users to target all tablet servers belonging to a 
specific **rack** in a single call.
   
   **Purpose:**
   
   In production environments, the `rack` attribute of a `ServerNode` typically 
represents a physical machine (or a physical rack of machines). A common 
operational scenario is decommissioning a physical host — which may run 
multiple tablet servers — and marking all of them as `PERMANENT_OFFLINE` or 
`TEMPORARY_OFFLINE` at once.
   
   Without rack-based targeting, operators must:
   1. Call `Admin.getServerNodes()` to retrieve all server nodes.
   2. Manually filter the results by the target rack.
   3. Extract the server IDs.
   4. Call `addServerTag()` / `removeServerTag()` with those IDs.
   
   This is repetitive, error-prone, and adds unnecessary boilerplate in 
automation scripts. A dedicated rack-based API makes the decommissioning 
workflow concise and intuitive.
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!


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

Reply via email to