dragosvictor commented on code in PR #21682:
URL: https://github.com/apache/pulsar/pull/21682#discussion_r1423127405
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java:
##########
@@ -439,6 +444,15 @@ public CompletableFuture<Void> messageAcked(CommandAck
ack) {
.collect(Collectors.toMap(KeyLongValue::getKey,
KeyLongValue::getValue));
}
+ if (subscription.isTransferring()) {
+ if (log.isDebugEnabled()) {
+ log.debug("[{}] [{}] Ignoring message acknowledgement on
transferring topic, ack(s) count: {}",
+ subscription, consumerId, ack.getMessageIdsCount());
+ }
+ return FutureUtil.failedFuture(new
BrokerServiceException.TopicTransferringException(
Review Comment:
That was my concern also. Thank you for the `fillInStackTrace`
recommendation, didn't know about it. Seems like a reasonable tradeoff.
--
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]