Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4705E200BC0 for ; Tue, 15 Nov 2016 21:48:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 46097160B1D; Tue, 15 Nov 2016 20:48:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 98A05160AF2 for ; Tue, 15 Nov 2016 21:48:54 +0100 (CET) Received: (qmail 40166 invoked by uid 500); 15 Nov 2016 20:48:53 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 40150 invoked by uid 99); 15 Nov 2016 20:48:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 20:48:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1D350C7B04 for ; Tue, 15 Nov 2016 20:48:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.218 X-Spam-Level: X-Spam-Status: No, score=-6.218 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oUPEsdqxmD45 for ; Tue, 15 Nov 2016 20:48:52 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 33D0360E41 for ; Tue, 15 Nov 2016 20:48:50 +0000 (UTC) Received: (qmail 38926 invoked by uid 99); 15 Nov 2016 20:48:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 20:48:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 231EEE0209; Tue, 15 Nov 2016 20:48:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: klund@apache.org To: commits@geode.incubator.apache.org Date: Tue, 15 Nov 2016 20:49:14 -0000 Message-Id: <31372905122943698d5f9a892de58b09@git.apache.org> In-Reply-To: <5e985eea15f64f24b4f32a8d65571c60@git.apache.org> References: <5e985eea15f64f24b4f32a8d65571c60@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [27/50] [abbrv] incubator-geode git commit: GEODE-2074 GMSJoinLeaveJUnitTest.testDuplicateJoinRequestDoesNotCauseNewView archived-at: Tue, 15 Nov 2016 20:48:55 -0000 GEODE-2074 GMSJoinLeaveJUnitTest.testDuplicateJoinRequestDoesNotCauseNewView I've run this test class hundreds of times with only one failure in a different test. I've also run the individual test many hundreds of times with no failures. Since the ticket didn't include any of the test output or any information about past tests run that could have affected this test I am closing the ticket and modifying the test's failure text to give more information about the state of the Join/Leave processor if the test should fail again. This commit also includes a fix for the other test method that failed. Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/665570e4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/665570e4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/665570e4 Branch: refs/heads/feature/GEODE-1930 Commit: 665570e438386a11f2071160e14ef3861bbfba51 Parents: 366f089 Author: Bruce Schuchardt Authored: Mon Nov 14 10:06:42 2016 -0800 Committer: Bruce Schuchardt Committed: Mon Nov 14 10:10:57 2016 -0800 ---------------------------------------------------------------------- .../membership/gms/membership/GMSJoinLeaveJUnitTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/665570e4/geode-core/src/test/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeaveJUnitTest.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeaveJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeaveJUnitTest.java index dac49d5..4143be1 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeaveJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeaveJUnitTest.java @@ -487,7 +487,7 @@ public class GMSJoinLeaveJUnitTest { view.getCrashedMembers().contains(mockMembers[0])); } - @Category(FlakyTest.class) // GEODE-2074: timed out waiting for view #7 +// @Category(FlakyTest.class) // GEODE-2074: timed out waiting for view #7 @Test public void testDuplicateJoinRequestDoesNotCauseNewView() throws Exception { initMocks(); @@ -532,9 +532,9 @@ public class GMSJoinLeaveJUnitTest { && (!gmsJoinLeave.getViewRequests().isEmpty() || gmsJoinLeave.getView().getViewId() != viewId)) { if (sleeps++ > 20) { - System.out.println("view requests: " + gmsJoinLeave.getViewRequests()); - System.out.println("current view: " + gmsJoinLeave.getView()); - throw new RuntimeException("timeout waiting for view #" + viewId); + throw new RuntimeException( + "timeout waiting for view #" + viewId + " current view: " + gmsJoinLeave.getView() + + "; view requests: " + gmsJoinLeave.getViewRequests()); } Thread.sleep(1000); } @@ -1030,7 +1030,7 @@ public class GMSJoinLeaveJUnitTest { msg.setSender(gmsJoinLeaveMemberId); gmsJoinLeave.processMessage(msg); } - Timeout to = new Timeout(2 * ServiceConfig.MEMBER_REQUEST_COLLECTION_INTERVAL, new Times(1)); + Timeout to = new Timeout(3 * ServiceConfig.MEMBER_REQUEST_COLLECTION_INTERVAL, new Times(1)); verify(messenger, to).send(isA(NetworkPartitionMessage.class)); } finally {