YARN-11925. Fix the configurability of RM webservice class#8215
YARN-11925. Fix the configurability of RM webservice class#8215p-szucs wants to merge 4 commits intoapache:trunkfrom
Conversation
Change-Id: I108120c5407ed103adfcfcb469c44c7ed3de9999
d42bd4c to
fe177c2
Compare
Change-Id: Idd77e98c62e68efe27c27daea20c1e2a438d749e
4141a52 to
9d12c7a
Compare
Change-Id: I75a5d80815847d576c5c2240c06399d8d1611018
9d12c7a to
d9c818c
Compare
Hean-Chhinling
left a comment
There was a problem hiding this comment.
Thanks @p-szucs for the patch.
I do have a small question regarding the used of debug log but maybe it depends on the Author styles.
| Class webService = config.getClass(YarnConfiguration.YARN_WEBAPP_CUSTOM_WEBSERVICE_CLASS, | ||
| RMWebServices.class); | ||
| resourceConfig.register(webService); | ||
| if (LOG.isDebugEnabled()) { |
There was a problem hiding this comment.
Is the debug log by default will run when the log level set to DEBUG (like here)?
I think the LOG.isDebugEnabled() is used when it is needed to run more code there.
E.g.
There was a problem hiding this comment.
Agreed, we don't need to guard this with the conditional. LGTM after making that change.
There was a problem hiding this comment.
Thanks @Hean-Chhinling and @cnauroth for the suggestion, removed the conditional
| Class webService = config.getClass(YarnConfiguration.YARN_WEBAPP_CUSTOM_WEBSERVICE_CLASS, | ||
| RMWebServices.class); | ||
| resourceConfig.register(webService); | ||
| if (LOG.isDebugEnabled()) { |
There was a problem hiding this comment.
Agreed, we don't need to guard this with the conditional. LGTM after making that change.
Change-Id: I3aaf96779cc9e4e688f9c417017f35a0e8d22892
Change-Id: I108120c5407ed103adfcfcb469c44c7ed3de9999
Description of PR
RM webservice class is not configurable in trunk with the "yarn.webapp.custom.webservice.class" property since the upgrade to Jersey 2. The patch
How was this patch tested?
Tested on a cluster with custom webservice class
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?AI Tooling
If an AI tool was used:
where is the name of the AI tool used.
https://www.apache.org/legal/generative-tooling.html