[ https://issues.apache.org/jira/browse/GEODE-7613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernest Burghardt closed GEODE-7613. ----------------------------------- Assignee: Ernest Burghardt (was: Bill Burcham) > deadlock initializing DistributionConfig.DEFAULT_MCAST_ADDRESS > -------------------------------------------------------------- > > Key: GEODE-7613 > URL: https://issues.apache.org/jira/browse/GEODE-7613 > Project: Geode > Issue Type: Bug > Components: core > Reporter: Bill Burcham > Assignee: Ernest Burghardt > Priority: Major > Fix For: 1.12.0 > > Time Spent: 20m > Remaining Estimate: 0h > > In this JDK11 DUnit test run: > https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK11/builds/1402 > there was a deadlock during {{TcpServerProductVersionDUnitTest > testAllMessageTypes[OLD_CURRENT]}} > The problem is, this line in {{DistributionConfig}}: > {code} > InetAddress DEFAULT_MCAST_ADDRESS = > AbstractDistributionConfig._getDefaultMcastAddress(); > {code} > It references a subtype of {{DistributionConfig}}, i.e. > {{AbstractDistributionConfig}}. When one thread references > {{DistributionConfig}} and another thread references > {{AbstractDistributionConfig}}—both for the first time, there is a deadlock > in class initialization. > The solution is to make initialization of the base type > ({{DistributionConfig}}) independent of the derived type > ({{AbstractDistributionConfig}}). -- This message was sent by Atlassian Jira (v8.3.4#803005)