[ https://issues.apache.org/jira/browse/ARTEMIS-2937?focusedWorklogId=504739&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-504739 ]
ASF GitHub Bot logged work on ARTEMIS-2937: ------------------------------------------- Author: ASF GitHub Bot Created on: 26/Oct/20 14:32 Start Date: 26/Oct/20 14:32 Worklog Time Spent: 10m Work Description: gemmellr commented on a change in pull request #3294: URL: https://github.com/apache/activemq-artemis/pull/3294#discussion_r512005675 ########## File path: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/connect/AMQPReplicaTest.java ########## @@ -245,6 +254,142 @@ private String getText(boolean large, int i) { } } + /** + * Delivery annotations should be gone on the receiving side + * @throws Exception + */ + @Test + public void testLargeMessagesWithDeliveryAnnotations() throws Exception { + server.setIdentity("targetServer"); + server.start(); + server_2 = createServer(AMQP_PORT_2, false); + server_2.setIdentity("server_2"); + + AMQPBrokerConnectConfiguration amqpConnection = new AMQPBrokerConnectConfiguration("test", "tcp://localhost:" + AMQP_PORT).setReconnectAttempts(-1).setRetryInterval(100); + AMQPMirrorBrokerConnectionElement replica = new AMQPMirrorBrokerConnectionElement().setMessageAcknowledgements(true); + amqpConnection.addElement(replica); + server_2.getConfiguration().addAMQPConnection(amqpConnection); + + int NUMBER_OF_MESSAGES = 20; + + server_2.start(); + Wait.assertTrue(server_2::isStarted); + + // We create the address to avoid auto delete on the queue + server_2.addAddressInfo(new AddressInfo("TEST").addRoutingType(RoutingType.ANYCAST).setAutoCreated(false)); + server_2.createQueue(new QueueConfiguration("TEST").setRoutingType(RoutingType.ANYCAST).setAddress("TEST").setAutoCreated(false)); Review comment: Yeah, right up until it turns out there are. Its also not just about leaks between tests, its mostly not. There are other reasons its my 'preference' not to use repeadeted names like "test" on every test. I've worked on a test suite that did this before, it was better for avoiding it. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 504739) Time Spent: 24h 10m (was: 24h) > AMQP Server Connectivity > ------------------------ > > Key: ARTEMIS-2937 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2937 > Project: ActiveMQ Artemis > Issue Type: New Feature > Components: AMQP > Reporter: Clebert Suconic > Assignee: Clebert Suconic > Priority: Major > Fix For: 2.16.0 > > Time Spent: 24h 10m > Remaining Estimate: 0h > > This feature adds server side connectivity. > > It is possible to link two brokers directly using AMQP with this feature, and > have a Queue transferring messages to another broker directly. > > For this we would have options called <sender and <receiver > > > it would also be possible to use qpid-dispatch as an intermediary between > clients and the brokers (or eventually between brokers), on that case the > option will be <peer > > it would also be possible to use <mirror with a few option to replicate data > between two brokers, bringing the possibility of using it for Disaster & > Recovery and Failover. -- This message was sent by Atlassian Jira (v8.3.4#803005)