clebertsuconic commented on a change in pull request #3406:
URL: https://github.com/apache/activemq-artemis/pull/3406#discussion_r556799978
##########
File path:
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/ProtonServerReceiverContext.java
##########
@@ -184,6 +193,19 @@ protected void actualDelivery(AMQPMessage message,
Delivery delivery, Receiver r
}
}
+ private void validateAddressOnAnymousLink(AMQPMessage message) throws
Exception {
+ SimpleString newAddress = message.getAddressSimpleString();
+ if (newAddress != null && !newAddress.equals(lastAddress)) {
+ PagingStore newPageStore =
sessionSPI.getProtocolManager().getServer().getPagingManager().getPageStore(newAddress);
+ if (!addressAlreadyClashed && lastPageStore != null &&
lastPageStore.getAddressFullMessagePolicy() !=
newPageStore.getAddressFullMessagePolicy()) {
+ addressAlreadyClashed = true; // print the warning only once
Review comment:
I'm storing the addresses so we can print them properly in case there's
a clash. An architect would have a lot of trouble finding the proper producer
without knowing the name where the issue occurred.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]