Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-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 D1D59E314 for ; Tue, 5 Feb 2013 00:40:34 +0000 (UTC) Received: (qmail 36826 invoked by uid 500); 5 Feb 2013 00:40:34 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 36798 invoked by uid 500); 5 Feb 2013 00:40:34 -0000 Mailing-List: contact commits-help@helix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.incubator.apache.org Delivered-To: mailing list commits@helix.incubator.apache.org Received: (qmail 36786 invoked by uid 99); 5 Feb 2013 00:40:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 00:40:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 05 Feb 2013 00:40:33 +0000 Received: (qmail 35674 invoked by uid 99); 5 Feb 2013 00:40:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 00:40:12 +0000 Date: Tue, 5 Feb 2013 00:40:12 +0000 (UTC) From: "Hudson (JIRA)" To: commits@helix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HELIX-41) fix intermittent test failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HELIX-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570796#comment-13570796 ] Hudson commented on HELIX-41: ----------------------------- Integrated in helix #527 (See [https://builds.apache.org/job/helix/527/]) HELIX-41: fix intermittent test failures (Revision f82ddf27009eb4e92e9fed65d90e64a267524ed0) Result = UNSTABLE zzhang : Files : * helix-core/src/test/java/org/apache/helix/healthcheck/TestAlertFireHistory.java * helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixManager.java > fix intermittent test failures > ------------------------------ > > Key: HELIX-41 > URL: https://issues.apache.org/jira/browse/HELIX-41 > Project: Apache Helix > Issue Type: Bug > Reporter: dafu > Assignee: dafu > > a few tests have the following pattern for assert test failure: > sleep(xx) // wait zk callback to arrive or sth. similar > assert(ret==true) > but this depends on the zk callback latency and it's not stable. > change it to: > for (int i = 0; i < 10) { > if (ret == true) > break; > sleep(xx); > } > assert(ret == true) > also in case of failure, we need to print out in assert(, "actual value that leads to failure") the actual value that leads to failure so we would know if the failure is caused by timeout or sth. else -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira