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 77910200D4B for ; Mon, 27 Nov 2017 19:36:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 76267160BFA; Mon, 27 Nov 2017 18:36:06 +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 C115F160C14 for ; Mon, 27 Nov 2017 19:36:05 +0100 (CET) Received: (qmail 11283 invoked by uid 500); 27 Nov 2017 18:36:05 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 11237 invoked by uid 99); 27 Nov 2017 18:36:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2017 18:36:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 329C61A0A55 for ; Mon, 27 Nov 2017 18:36:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id akPwGuIa59LA for ; Mon, 27 Nov 2017 18:36:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BB74F5F23E for ; Mon, 27 Nov 2017 18:36:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6B380E00CD for ; Mon, 27 Nov 2017 18:36:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9E7DD241C6 for ; Mon, 27 Nov 2017 18:36:00 +0000 (UTC) Date: Mon, 27 Nov 2017 18:36:00 +0000 (UTC) From: "Barry Oglesby (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (GEODE-4015) CI failure: ConflationDUnitTest.testTwoRegionsTwoWriters fails with AssertionError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Nov 2017 18:36:06 -0000 Barry Oglesby created GEODE-4015: ------------------------------------ Summary: CI failure: ConflationDUnitTest.testTwoRegionsTwoWriters fails with AssertionError Key: GEODE-4015 URL: https://issues.apache.org/jira/browse/GEODE-4015 Project: Geode Issue Type: Bug Components: client queues Reporter: Barry Oglesby Both testTwoRegionsTwoWriters and testTwoRegionsOneWriter failed with the same AssertionError: {noformat} org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest > testTwoRegionsTwoWriters FAILED java.lang.AssertionError: Test failed due to exception at org.apache.geode.test.dunit.Assert.fail(Assert.java:66) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.testTwoRegionsTwoWriters(ConflationDUnitTest.java:155) Caused by: org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest$$Lambda$193/1316585270.run in VM 2 running on Host 6b07584084c4 with 4 VMs at org.apache.geode.test.dunit.VM.invoke(VM.java:393) at org.apache.geode.test.dunit.VM.invoke(VM.java:363) at org.apache.geode.test.dunit.VM.invoke(VM.java:308) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.testTwoRegionsTwoWriters(ConflationDUnitTest.java:153) Caused by: java.lang.AssertionError: Event never occurred after 60000 ms: null at org.junit.Assert.fail(Assert.java:88) at org.apache.geode.test.dunit.Wait.waitForCriterion(Wait.java:190) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.assertCounterSizes(ConflationDUnitTest.java:506) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.lambda$testTwoRegionsTwoWriters$bb17a952$10(ConflationDUnitTest.java:153) {noformat} {noformat} org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest > testTwoRegionsOneWriter FAILED org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest$$Lambda$221/1553950035.run in VM 2 running on Host 6b07584084c4 with 4 VMs at org.apache.geode.test.dunit.VM.invoke(VM.java:393) at org.apache.geode.test.dunit.VM.invoke(VM.java:363) at org.apache.geode.test.dunit.VM.invoke(VM.java:308) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.testTwoRegionsOneWriter(ConflationDUnitTest.java:183) Caused by: java.lang.AssertionError: Event never occurred after 60000 ms: null at org.junit.Assert.fail(Assert.java:88) at org.apache.geode.test.dunit.Wait.waitForCriterion(Wait.java:190) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.assertCounterSizes(ConflationDUnitTest.java:506) at org.apache.geode.internal.cache.tier.sockets.ConflationDUnitTest.lambda$testTwoRegionsOneWriter$bb17a952$10(ConflationDUnitTest.java:183) {noformat} ConflationDUnitTest.assertCounterSizes(ConflationDUnitTest.java:506) is waiting for {{counterUpdate == 2}}. I think this is a timing issue. The first line of the test sets CacheClientProxy.isSlowStartForTesting to true. This causes the MessageDispatcher to not send messages immediately. Instead, it waits for 5 seconds before sending. This allows the queue to conflate the events. If I remove the slow start setting, the test fails every time because conflation doesn't happen. Unfortunately, the description returns null (the null in the AssertionError messages above), so we don't know anything about why the assertion is failing. If it were changed to return the actual value of counterUpdate, that would be helpful. With that change and the boolean not set in the test, I see: {noformat} Caused by: java.lang.AssertionError: Event never occurred after 60000 ms: Expected counterUpdate to be 2. Instead it was 6 {noformat} My guess is that between the time the MessageDispatcher is told to wait and the test actually runs, at least 5 seconds elapses, and the conflation doesn't occur. I'll make these changes to the test so that next time it happens, we can see if thats the case. -- This message was sent by Atlassian JIRA (v6.4.14#64029)