[ https://issues.apache.org/jira/browse/GEODE-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16377560#comment-16377560 ]
ASF subversion and git services commented on GEODE-2673: -------------------------------------------------------- Commit 101fd19ba74a1945265b1dee56327313c3a5c14f in geode's branch refs/heads/feature/GEODE-4738 from [~apa...@the9muses.net] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=101fd19 ] GEODE-2673: overhaul PartitionedRegion dunit tests (#1486) * Delete PartitionedRegionDUnitTestCase * Overhaul every dunit test that extended PartitionedRegionDUnitTestCase * Fix flakiness in several dunit tests * Document and update test methods that were named after old TRAC bugs * Extract regression test methods to new dedicated test classes * Extract unrelated test methods to new dedicated test classes * Extract inner classes that are used by multiple test classes * Change PRIdMap prIdToPR in PartitionedRegion to be private and change tests to use an accessor to reference it * Change localBucket2RegionMap in PartitionedRegionDataStore to be private and change tests to use an accessor to reference it * Move "Set getSomeKeys(Random rnd)" from PartitionedRegion product code to PartitionedRegionGetSomeKeys in test code * Make IgnoredException AutoCloseable so you can use it within try-resource blocks * Add "IgnoredException addIgnoredException(final Class exceptionClass)" to IgnoredException > PartitionedRegionMultipleDUnitTest.testPartitionedRegionDestroyAndContainsAPI > fails intermittently with ForcedDisconnectException > --------------------------------------------------------------------------------------------------------------------------------- > > Key: GEODE-2673 > URL: https://issues.apache.org/jira/browse/GEODE-2673 > Project: Geode > Issue Type: Bug > Components: tests > Reporter: Kirk Lund > Assignee: Kirk Lund > Priority: Major > Labels: Flaky, pull-request-available > Time Spent: 1.5h > Remaining Estimate: 0h > > Test passes when run by itself: > {noformat} > ./gradlew -DdistributedTest.single=PartitionedRegionMultipleDUnitTest > geode-core:distributedTest > {noformat} > But fails intermittently in precheckin: > {noformat} > org.apache.geode.internal.cache.PartitionedRegionMultipleDUnitTest > > testPartitionedRegionDestroyAndContainsAPI FAILED > java.lang.AssertionError: exception during 0 > at org.apache.geode.test.dunit.Assert.fail(Assert.java:60) > at > org.apache.geode.internal.cache.PartitionedRegionMultipleDUnitTest.testPartitionedRegionDestroyAndContainsAPI(PartitionedRegionMultipleDUnitTest.java:231) > Caused by: > java.lang.AssertionError: Validation failed for key = > 0testPartitionedRegionDestroyAndContainsAPI3Value got = null > 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 1807 > [fatal 2017/03/13 23:48:06.633 UTC <unicast receiver,903f9f67a095-10211> > tid=0xc5] Membership service failure: this member is no longer in the view > but is initiating connections > org.apache.geode.ForcedDisconnectException: this member is no longer in > the view but is initiating connections > at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.forceDisconnect(GMSMembershipManager.java:2517) > at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.forceDisconnect(GMSJoinLeave.java:998) > at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.processRemoveRequest(GMSJoinLeave.java:635) > at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.processMessage(GMSJoinLeave.java:1702) > at > org.apache.geode.distributed.internal.membership.gms.messenger.JGroupsMessenger$JGroupsReceiver.receive(JGroupsMessenger.java:1286) > at org.jgroups.JChannel.invokeCallback(JChannel.java:816) > at org.jgroups.JChannel.up(JChannel.java:741) > at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1030) > at org.jgroups.protocols.FRAG2.up(FRAG2.java:165) > at org.jgroups.protocols.FlowControl.up(FlowControl.java:390) > at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1070) > at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:785) > at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426) > at > org.apache.geode.distributed.internal.membership.gms.messenger.StatRecorder.up(StatRecorder.java:74) > at > org.apache.geode.distributed.internal.membership.gms.messenger.AddressManager.up(AddressManager.java:72) > at org.jgroups.protocols.TP.passMessageUp(TP.java:1601) > at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1817) > at org.jgroups.util.DirectExecutor.execute(DirectExecutor.java:10) > at org.jgroups.protocols.TP.handleSingleMessage(TP.java:1729) > at org.jgroups.protocols.TP.receive(TP.java:1654) > at > org.apache.geode.distributed.internal.membership.gms.messenger.Transport.receive(Transport.java:160) > at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:701) > at java.lang.Thread.run(Thread.java:745) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)