-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[pulsar-broker] cluster-resource use cluster name to fetch cluster-metadata #9928
Conversation
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.
LGTM
I left one suggestion PTAL
@@ -390,7 +391,7 @@ public void deleteCluster( | |||
} | |||
} catch (Exception e) { | |||
log.error("[{}] Failed to get cluster usage {}", clientAppId(), cluster, e); | |||
throw new RestException(e); | |||
throw new RestException(e instanceof ExecutionException ? e.getCause() : e); |
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.
What about adding an utility function for this line? I see it written more times
/pulsarbot run-failure-checks |
} else { | ||
log.error("[{}] Failed to get partitioned topic list for namespace {}", clientAppId(), | ||
namespaceName.toString(), e); | ||
throw new RestException(e); |
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.
Would it be better, just a suggestion
throw new RestException(e instanceof ExecutionException ? e.getCause() : e)
Hi Rajan @rdhabalia, Could you please help resolve the conflicts? so that we can merge it before 2.8.0 |
it seems #11693 again had same changes and that new PR is merged. so, we should close this one. |
Motivation
Note: On top of : #9925
Cluster-resources should be able to fetch cluster-metadata and internal-path should be handled by the base-resources. It will make code clean and will be helpful for future abstraction.