Return-Path: X-Original-To: apmail-geode-commits-archive@minotaur.apache.org Delivered-To: apmail-geode-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7DC1318960 for ; Fri, 16 Oct 2015 20:42:03 +0000 (UTC) Received: (qmail 12393 invoked by uid 500); 16 Oct 2015 20:42:03 -0000 Delivered-To: apmail-geode-commits-archive@geode.apache.org Received: (qmail 12365 invoked by uid 500); 16 Oct 2015 20:42:03 -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 12356 invoked by uid 99); 16 Oct 2015 20:42:03 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 20:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EBFEDC0BE5 for ; Fri, 16 Oct 2015 20:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id orzlc81Vjewa for ; Fri, 16 Oct 2015 20:41:54 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 4776326B72 for ; Fri, 16 Oct 2015 20:41:43 +0000 (UTC) Received: (qmail 8847 invoked by uid 99); 16 Oct 2015 20:41:43 -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; Fri, 16 Oct 2015 20:41:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0D329E1080; Fri, 16 Oct 2015 20:41:43 +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: Fri, 16 Oct 2015 20:42:04 -0000 Message-Id: <14460fdd19b34400b482752703e23cb7@git.apache.org> In-Reply-To: <95c7941e4a5d4eb8ad528cab2ad71fba@git.apache.org> References: <95c7941e4a5d4eb8ad528cab2ad71fba@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [23/50] [abbrv] incubator-geode git commit: [GEODE-338] Modified FDDUnitTest, increased thread count and added logging on failure [GEODE-338] Modified FDDUnitTest, increased thread count and added logging on failure Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/28101725 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/28101725 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/28101725 Branch: refs/heads/feature/GEODE-291 Commit: 28101725c5e882eafd1592df31f552716e3effa2 Parents: 1512677 Author: Jason Huynh Authored: Mon Oct 5 10:02:47 2015 -0700 Committer: Jason Huynh Committed: Mon Oct 5 10:05:04 2015 -0700 ---------------------------------------------------------------------- .../java/com/gemstone/gemfire/internal/FDDUnitTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/28101725/gemfire-core/src/test/java/com/gemstone/gemfire/internal/FDDUnitTest.java ---------------------------------------------------------------------- diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/FDDUnitTest.java b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/FDDUnitTest.java index 9d3bcb9..7379c86 100644 --- a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/FDDUnitTest.java +++ b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/FDDUnitTest.java @@ -81,9 +81,10 @@ public class FDDUnitTest extends CacheTestCase { } } try { + StringBuffer incaseOfFailure = new StringBuffer(); final int[] port = AvailablePortHelper.getRandomAvailableTCPPorts(3); final int mcastPort = AvailablePortHelper.getRandomAvailableUDPPort(); - int numThreads = 10; + int numThreads = 30; startCacheServer(vm0, port[0], mcastPort); startCacheServer(vm1, port[1], mcastPort); @@ -99,6 +100,7 @@ public class FDDUnitTest extends CacheTestCase { doPuts(vm0, numThreads, "portfolios"); long endFDs = checkFD(vm0); long numFDs = endFDs - startingFDs; + incaseOfFailure.append("NoSelectorPooling startFDs: " + startingFDs + " endFDs: " + endFDs + " diff:" + numFDs + " "); // run test with selector pooling setUseSelectorPooling(vm0, true); @@ -106,7 +108,8 @@ public class FDDUnitTest extends CacheTestCase { doPuts(vm0, numThreads, "portfolios"); long endFDsWithPooling = checkFD(vm0); long numFDsWithPooling = endFDsWithPooling - startingFDsWithPooling; - assertTrue(numFDsWithPooling < numFDs); + incaseOfFailure.append("SelectorPooling#1 startFDs: " + startingFDsWithPooling + " endFDs: " + endFDsWithPooling + " diff:" + numFDsWithPooling + " "); + assertTrue(incaseOfFailure.toString(), numFDsWithPooling < numFDs); // run it again and see if the number still is below startingFDsWithPooling = checkFD(vm0); @@ -115,7 +118,8 @@ public class FDDUnitTest extends CacheTestCase { numFDsWithPooling = endFDsWithPooling - startingFDsWithPooling; // if you see these asserts failing, it could be that we are not using the // selector pool - assertTrue(numFDsWithPooling < numFDs); + incaseOfFailure.append("SelectorPooling#2 startFDs: " + startingFDsWithPooling + " endFDs: " + endFDsWithPooling + " diff:" + numFDsWithPooling + " "); + assertTrue(incaseOfFailure.toString(), numFDsWithPooling < numFDs); } finally { setUseSelectorPooling(vm0, true); @@ -151,7 +155,7 @@ public class FDDUnitTest extends CacheTestCase { for (int i = 0; i < numThreads; i++) { executor.execute(new Runnable() { public void run() { - for (int i = 0; i < 20; i++) { + for (int i = 0; i < 10; i++) { String myValue = "string" + i; region.put("k" + i, myValue); try {