[
https://issues.apache.org/jira/browse/GEODE-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168042#comment-16168042
]
Nick Reich commented on GEODE-3180:
-----------------------------------
I found a way that seems to remove the flakyness of the test. The test was
checking for asynchronous logging of a warning, then carrying out the action
that should stop the warning from happening again. However, this leaves a gap
for the warning to be logged an additional time and the test checks to make
sure that no more invocations are made on the logger. Instead, the test should
make sure that once the condition that stops the warning is completed, then
there should not be any additional loggings of the warning.
> CI failure:
> org.apache.geode.internal.cache.partitioned.PersistentColocatedPartitionedRegionDUnitTest.testFullTreeOfColocatedChildPRsWithMissingRegions
> fails with org.mockito.exceptions.verification.NoInteractionsWanted
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-3180
> URL: https://issues.apache.org/jira/browse/GEODE-3180
> Project: Geode
> Issue Type: Bug
> Components: regions
> Reporter: Lynn Gallinat
> Assignee: Nick Reich
> Labels: storage_3
>
> {noformat}
> org.apache.geode.internal.cache.partitioned.PersistentColocatedPartitionedRegionDUnitTest
> > testFullTreeOfColocatedChildPRsWithMissingRegions FAILED
> java.lang.AssertionError: An exception occurred during asynchronous
> invocation.
> at
> org.apache.geode.test.dunit.AsyncInvocation.checkException(AsyncInvocation.java:148)
> at
> org.apache.geode.test.dunit.AsyncInvocation.get(AsyncInvocation.java:422)
> at
> org.apache.geode.internal.cache.partitioned.PersistentColocatedPartitionedRegionDUnitTest.testFullTreeOfColocatedChildPRsWithMissingRegions(PersistentColocatedPartitionedRegionDUnitTest.java:1298)
> Caused by:
> org.mockito.exceptions.verification.NoInteractionsWanted:
> No interactions wanted here:
> -> at
> org.apache.geode.internal.cache.partitioned.PersistentColocatedPartitionedRegionDUnitTest$14.call(PersistentColocatedPartitionedRegionDUnitTest.java:1232)
> But found this interaction on mock 'appender':
> -> at
> org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
> ***
> For your reference, here is the list of all invocations ([?] - means
> unverified).
> 1. -> at
> org.apache.logging.log4j.core.config.AbstractConfiguration.addLoggerAppender(AbstractConfiguration.java:694)
> 2. -> at
> org.apache.logging.log4j.core.config.AppenderControl.<init>(AppenderControl.java:51)
> 3. -> at
> org.apache.logging.log4j.core.config.AppenderControl.ensureAppenderStarted(AppenderControl.java:134)
> 4. -> at
> org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
> 5. -> at
> org.apache.logging.log4j.core.config.AppenderControl.ensureAppenderStarted(AppenderControl.java:134)
> 6. [?]-> at
> org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156){noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)