-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Server API to get tenant pools #11273
Conversation
4330ccb
to
e390e53
Compare
cc: @chenboat can you help review it? Thanks! |
Codecov Report
@@ Coverage Diff @@
## master #11273 +/- ##
==========================================
- Coverage 0.11% 0.11% -0.01%
==========================================
Files 2229 2239 +10
Lines 119963 120429 +466
Branches 18183 18217 +34
==========================================
Hits 137 137
- Misses 119806 120272 +466
Partials 20 20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 58 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
}) | ||
@Produces(MediaType.APPLICATION_JSON) | ||
public Map<String, String> getInstancePools() { | ||
InstanceConfig instanceConfig = HelixHelper.getInstanceConfig(_helixManager, _instanceId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need null check for instanceConfig (similar to getInstanceTags)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ankit, addressed
e390e53
to
798da32
Compare
@ApiOperation(value = "Tenant pools for current instance") | ||
@ApiResponses(value = { | ||
@ApiResponse(code = 200, message = "Success"), @ApiResponse(code = 500, message = "Internal server error") | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- can you add the javadoc to explain return result types? i.e.,The summary in the PR looks good.
- Can you add a Pinot doc reference to the definition of pool in Pinot?
302cfae
to
a63fb4d
Compare
Add a new Server API GET /instance/pools in InstanceResource to get server pools.
feature
It returns an empty map if the server is not assigned to any pool number
Tested locally: