lhotari commented on code in PR #23886:
URL: https://github.com/apache/pulsar/pull/23886#discussion_r1927136459
##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/ObjectMapperFactory.java:
##########
@@ -263,15 +262,7 @@ private static void setAnnotationsModule(ObjectMapper
mapper) {
mapper.addMixIn(FunctionState.class, JsonIgnorePropertiesMixIn.class);
mapper.addMixIn(Metrics.class, MetricsMixIn.class);
- try {
- // We look for LoadManagerReport first, then add deserializer to
the module
- // With shaded client, org.apache.pulsar.policies is relocated to
- // org.apache.pulsar.shade.org.apache.pulsar.policies
-
ClassUtils.getClass("org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport");
Review Comment:
just wondering if a solution would work where this line
`ClassUtils.getClass("org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport")`
is removed. I wonder why this is present?
It seems strange that there would need to be separate handling for the
`org.apache.pulsar.policies.data.loadbalancer` package. It wouldn't be
consistent with the remaining parts of the shading solution.
--
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]