poorbarcode commented on code in PR #25048:
URL: https://github.com/apache/pulsar/pull/25048#discussion_r2601878441
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java:
##########
@@ -1730,12 +1730,8 @@ protected void handleProducer(final CommandProducer
cmdProducer) {
BrokerServiceException.getClientErrorCode(exception),
message);
}
- var cause =
FutureUtil.unwrapCompletionException(exception);
- if (!(cause instanceof IncompatibleSchemaException)) {
- log.error("Try add schema failed, remote address
{}, topic {}, producerId {}",
- remoteAddress,
- topicName, producerId, exception);
- }
+ log.warn("Try add schema failed, remote address {},
topic {}, producerId {}",
Review Comment:
If the client-side makes a mistake, which registrers a incompatible schema,
we should not print any warn log for it. In other words,
`IncompatibleSchemaException` should be ignored
--
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]