[
https://issues.apache.org/jira/browse/GEODE-7613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17002595#comment-17002595
]
ASF subversion and git services commented on GEODE-7613:
--------------------------------------------------------
Commit 6c7ad1f1c81c25e70afbd78c669ab956b4022e61 in geode's branch
refs/heads/feature/GesterTemp from Bill Burcham
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=6c7ad1f ]
GEODE-7613: move multicast address init to where it's needed (#4517)
> 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: Bill Burcham
> 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)