Skip to content

Support ephemeral ports in network config and Spring#1674

Merged
jeanouii merged 1 commit intoapache:mainfrom
jeanouii:fix/ephemeral-ports-network-spring
Feb 19, 2026
Merged

Support ephemeral ports in network config and Spring#1674
jeanouii merged 1 commit intoapache:mainfrom
jeanouii:fix/ephemeral-ports-network-spring

Conversation

@jeanouii
Copy link
Contributor

No description provided.

@cshannon
Copy link
Contributor

Would it be easier to just drop the XML config altogether and just configure those brokers without using Spring? It's a Base class so it may cause a lot of cascading refactoring so not sure it's a good idea.

@jeanouii
Copy link
Contributor Author

I agree and wanted to do that, but there were some discussions to drop Spring, so I figured we would do that at the same time.

If you prefer to start now and mix the ephemeral port with the XML file removal, I can give it a go and see what's the impact

@cshannon
Copy link
Contributor

I think it's fine to drop spring separately, it's probably better to do that anyways as the changes are a bit unrelated.

Copy link
Contributor

@cshannon cshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I guess we don't need to create a Jira anymore now that GH issues is opened.

@jbonofre - Are we going to require creating issues or just attach versions/milestones to PRs? I think PRs can be self documenting and don't really need a separate issue for stuff like this as we can just add the version right to the PR

@jbonofre
Copy link
Member

@cshannon assigning PR to milestone is good enough for the release notes. Issue is welcome for "significant" changes.

jbonofre
jbonofre previously approved these changes Feb 18, 2026
@cshannon
Copy link
Contributor

@jbonofre and @jeanouii - before you merge I think the test failures might be real. I initially thought maybe they were flaky but I looked again at eh results and noticed some failures like DynamicallyIncludedDestinationsDuplexNetworkTest that pass on main for me but not this branch

Copy link
Contributor

@cshannon cshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just switching my review to "Request changes" until the test failures are looked at

@jeanouii jeanouii force-pushed the fix/ephemeral-ports-network-spring branch from f83a0b4 to 1808532 Compare February 19, 2026 09:16
@jeanouii
Copy link
Contributor Author

I investigated a bit deeper and did a small tweak. Thank you so much for the deep analysis.
I think they are now all resolved and should be back to normal. I ran them all in a loop locally and they never failed.

The last run reported QueueZeroPrefetchLazyDispatchPriorityTest as failure, but it's a known flaky test that I need to address in another PR.

@jeanouii
Copy link
Contributor Author

jeanouii commented Feb 19, 2026

I ran it again, and it failed again after in the activemq-http module with

Error:  Failures: 
Error:    AMQ2764Test.testBrokerRestart:145 Had extra messages expected null, but was:<ActiveMQMessage {commandId = 30, responseRequired = true, messageId = ID:runnervmjduv7-46345-1771502273501-24:50:1:1:1, originalDestination = null, originalTransactionId = null, producerId = broker1->broker2-46345-1771502273501-27:2:1:1, destination = queue://RECONNECT.TEST.QUEUE, transactionId = null, deliveryTime = 1771502281971, expiration = 0, timestamp = 1771502281971, arrival = 0, brokerInTime = 1771502281972, brokerOutTime = 1771502281972, correlationId = null, replyTo = null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 1024, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false, jmsXGroupFirstForConsumer = false}>
[INFO] 
Error:  Tests run: 535, Failures: 1, Errors: 0, Skipped: 4

I think we are good here, unless you find a link @cshannon
This looks like a flaky test we need to address. Looks like after reconnect we received an extra and unexpected message. There is a thread sleep after stop instead of waitUntilStopped() or a WaitFor approach to avoid issues on slow or fast CIs

Copy link
Contributor

@cshannon cshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now, the test is passing

@jeanouii jeanouii merged commit 902b85c into apache:main Feb 19, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments