You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barry Oglesby (JIRA)" <ji...@apache.org> on 2019/03/27 17:47:00 UTC

[jira] [Commented] (GEODE-6566) CI failure: MemberMBeanAttributesDUnitTest testReplRegionAttributes failed with suspect string

    [ https://issues.apache.org/jira/browse/GEODE-6566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16803131#comment-16803131 ] 

Barry Oglesby commented on GEODE-6566:
--------------------------------------

Normally, SampleCollector.sample is only invoked by the StatSampler thread. It is the only one that iterates the resourceInstMap.

In this test, that thread is running normally. In addition, the test calls SampleCollector.sample. This now means two threads are executing that method and potentially iterating the resourceInstMap simultaneously.

This is the normal StatSampler thread:
{noformat}
[vm2] [warning 2019/03/27 10:35:14.150 PDT <StatSampler> tid=45] SampleCollector.sample invoked
[vm2] java.lang.Exception
[vm2] at org.apache.geode.internal.statistics.SampleCollector.sample(SampleCollector.java:219)
[vm2] at org.apache.geode.internal.statistics.HostStatSampler.run(HostStatSampler.java:232)
[vm2] at java.lang.Thread.run(Thread.java:745)
{noformat}
This is the test method thread:
{noformat}
[vm2] [warning 2019/03/27 10:35:15.285 PDT <RMI TCP Connection(1)-127.0.0.1> tid=19] SampleCollector.sample invoked
[vm2] java.lang.Exception
[vm2] at org.apache.geode.internal.statistics.SampleCollector.sample(SampleCollector.java:219)
[vm2] at org.apache.geode.management.MemberMBeanAttributesDUnitTest.lambda$sampleStatistics$b6506259$1(MemberMBeanAttributesDUnitTest.java:89)
{noformat}

> CI failure: MemberMBeanAttributesDUnitTest testReplRegionAttributes failed with suspect string
> ----------------------------------------------------------------------------------------------
>
>                 Key: GEODE-6566
>                 URL: https://issues.apache.org/jira/browse/GEODE-6566
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Barry Oglesby
>            Priority: Major
>
> CI run:
> https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK8/builds/543
> Suspect strings:
> {noformat}
> org.apache.geode.management.MemberMBeanAttributesDUnitTest > testReplRegionAttributes FAILED
>  java.lang.AssertionError: Suspicious strings were written to the log during this run.
>  Fix the strings or use IgnoredException.addIgnoredException to ignore.
>  -----------------------------------------------------------------------
>  Found suspect string in log4j at line 2383
> [fatal 2019/03/27 01:09:04.965 UTC <StatSampler> tid=195] null
>  java.util.ConcurrentModificationException
>  at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
>  at java.util.HashMap$ValueIterator.next(HashMap.java:1471)
>  at org.apache.geode.internal.statistics.SampleCollector.sample(SampleCollector.java:231)
>  at org.apache.geode.internal.statistics.HostStatSampler.run(HostStatSampler.java:232)
>  at java.lang.Thread.run(Thread.java:748)
> -----------------------------------------------------------------------
>  Found suspect string in log4j at line 2396
> [fatal 2019/03/27 01:09:04.972 UTC <StatSampler> tid=195] Uncaught exception in thread Thread[StatSampler,10,RMI Runtime]
>  java.util.ConcurrentModificationException
>  at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
>  at java.util.HashMap$ValueIterator.next(HashMap.java:1471)
>  at org.apache.geode.internal.statistics.SampleCollector.sample(SampleCollector.java:231)
>  at org.apache.geode.internal.statistics.HostStatSampler.run(HostStatSampler.java:232)
>  at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)