Skip to content
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

Implement getPartitioner() in HttpManagementProxy #1394

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

adejanovski
Copy link
Contributor

fixes #1381

@adejanovski adejanovski linked an issue Sep 5, 2023 that may be closed by this pull request
@adejanovski adejanovski marked this pull request as ready for review September 5, 2023 17:11
@Miles-Garnsey
Copy link
Contributor

@adejanovski this looks like it is failing to even build, is it draft?

@adejanovski
Copy link
Contributor Author

@adejanovski this looks like it is failing to even build, is it draft?

Sorry, it's a checkstyle issue that I missed.
It's no draft, ready for review as soon as I fix the failing check.

@adejanovski adejanovski force-pushed the get-partitioner-http branch 2 times, most recently from 25687f0 to efabcef Compare September 6, 2023 07:41
Copy link
Contributor

@Miles-Garnsey Miles-Garnsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few questions on this one below.

@@ -367,7 +367,7 @@ public Map<String, String> getEndpointToHostId() {
}

@Override
public String getPartitioner() {
public String getPartitioner() throws ReaperException {
Preconditions.checkNotNull(ssProxy, "Looks like the proxy is not connected");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should this throw an exception now if the proxy is not connected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, since the StorageServiceMbean.getPartitionerName() signature doesn't throw anything, we can't properly get the errors.
I'll wrap this in a try/catch block for RuntimeExceptions and wrap it in a ReaperException.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I'll approve now and you can merge once you've made this change and all checks are passing.

Copy link
Contributor

@Miles-Garnsey Miles-Garnsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving subject to the change being made to wrap potential runtime exceptions in a try/catch block

@adejanovski adejanovski merged commit 11676e4 into integration/http-managementproxy Sep 7, 2023
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement getPartitioner() in the HttpManagementProxy
2 participants