[
https://issues.apache.org/jira/browse/AMQ-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved AMQ-5520.
------------------------------
Resolution: Fixed
> MulticastDiscoveryAgent may use a network that is not multicast enabled,
> fails to startup
> -----------------------------------------------------------------------------------------
>
> Key: AMQ-5520
> URL: https://issues.apache.org/jira/browse/AMQ-5520
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.10.0
> Reporter: Daniel Kulp
> Assignee: Daniel Kulp
> Fix For: 5.11.0
>
>
> If no network interface is explicitly set, it calls
> mcast.joinGroup(inetAddress); without setting one on the MulticastSocket. In
> that case, MulticastSocket then calls NetworkInterface.getDefault(). The
> "default" interface on a system is relatively unpredictable and COULD result
> in a network interface that isn't even multicast enabled. On my mac, it's
> selecting a "awdl0" interface which doesn't support multicast. If I have
> Parallels running, it sometimes picks up one of those interfaces. It also
> sometimes picks up an ipv6 only network interface which also doesn't support
> the ipv4 broadcast address.
> It would be better to enumerate the network interfaces and at least make sure
> we grab one that support multicast on ipv4 and is "up".
> Note: this causes some test failures on my machine. Specifically
> SpringTest.testSenderWithSpringXmlEmbeddedPooledBrokerConfiguredViaXml fails.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)