Galen O'Sullivan created GEODE-6359:
---------------------------------------

             Summary: ConcurrentModificationException in shutdown due to 
passing a collection to logger
                 Key: GEODE-6359
                 URL: https://issues.apache.org/jira/browse/GEODE-6359
             Project: Geode
          Issue Type: Bug
            Reporter: Galen O'Sullivan


This occurred in a PR build, but appears unrelated from the changed code. It 
seems to be due to passing a collection into a logger, and that collection 
being modified while the logger is logging it.

https://concourse.apachegeode-ci.info/builds/35340

{noformat}
org.apache.geode.internal.cache.PartitionedRegionOffHeapEvictionDUnitTest > 
testEvictionValidationForLRUEntry_DatastoreFirst 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 2758
        

        
    [fatal 2019/02/04 22:06:06.494 UTC <Pooled High Priority Message Processor 
2> tid=254] Uncaught exception processing ShutdownMessage DM 
172.17.0.23(369)<v9>:41004 has shutdown
        
    java.util.ConcurrentModificationException
        
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
        
        at java.util.HashMap$KeyIterator.next(HashMap.java:1466)
        
        at 
org.apache.geode.internal.logging.log4j.message.GemFireParameterizedMessage.recursiveDeepToString(GemFireParameterizedMessage.java:508)
        
        at 
org.apache.geode.internal.logging.log4j.message.GemFireParameterizedMessage.deepToString(GemFireParameterizedMessage.java:393)
        
        at 
org.apache.geode.internal.logging.log4j.message.GemFireParameterizedMessage.parseArguments(GemFireParameterizedMessage.java:178)
        
        at 
org.apache.geode.internal.logging.log4j.message.GemFireParameterizedMessage.<init>(GemFireParameterizedMessage.java:131)
        
        at 
org.apache.geode.internal.logging.log4j.message.GemFireParameterizedMessageFactory.newMessage(GemFireParameterizedMessageFactory.java:57)
        
        at 
org.apache.logging.log4j.message.AbstractMessageFactory.newMessage(AbstractMessageFactory.java:91)
        
        at 
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2036)
        
        at 
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1914)
        
        at 
org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1450)
        
        at 
org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.processLeaveRequest(GMSJoinLeave.java:614)
        
        at 
org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.memberShutdown(GMSJoinLeave.java:1717)
        
        at 
org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.shutdownMessageReceived(GMSMembershipManager.java:1478)
        
        at 
org.apache.geode.distributed.internal.ClusterDistributionManager.shutdownMessageReceived(ClusterDistributionManager.java:2642)
        
        at 
org.apache.geode.distributed.internal.ShutdownMessage.process(ShutdownMessage.java:90)
        
        at 
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
        
        at 
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:433)
        
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        
        at 
org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:956)
        
        at 
org.apache.geode.distributed.internal.ClusterDistributionManager.doHighPriorityThread(ClusterDistributionManager.java:834)
        
        at 
org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
        
        at java.lang.Thread.run(Thread.java:748)
{noformat}



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

Reply via email to