Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35F8C18D94 for ; Thu, 10 Sep 2015 10:01:31 +0000 (UTC) Received: (qmail 14014 invoked by uid 500); 10 Sep 2015 10:01:31 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 13967 invoked by uid 500); 10 Sep 2015 10:01:31 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 13956 invoked by uid 99); 10 Sep 2015 10:01:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2015 10:01:30 +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 6EC021A0BF4 for ; Thu, 10 Sep 2015 10:01:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.202 X-Spam-Level: ** X-Spam-Status: No, score=2.202 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, MISSING_HEADERS=1.207, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fuxNuFm8BuhE for ; Thu, 10 Sep 2015 10:01:22 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id C226923179 for ; Thu, 10 Sep 2015 10:01:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 537AE240EDC; Thu, 10 Sep 2015 02:59:14 -0700 (PDT) Date: Thu, 10 Sep 2015 02:59:14 -0700 From: "abdullah alamoudi (Code Review)" CC: Jenkins , Murtadha Hubail , Till Westmann , Chris Hillery Reply-To: bamousaa@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: This change fixes the sporadic connection refused errors aft... X-Gerrit-Change-Id: Ib730f50ab2fb492f3cf973d1cf2f03b34e24e5b3 X-Gerrit-ChangeURL: X-Gerrit-Commit: ec5a3d674ead1ccadb4ebdd12d7447dd4374362e In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.8.4 Message-Id: <20150910095914.537AE240EDC@unhygienix.ics.uci.edu> abdullah alamoudi has posted comments on this change. Change subject: This change fixes the sporadic connection refused errors after managix starts up an Asterix instance. This can mostly be seen during asterix-installer tests. The fix basically lets managix wait and listens through zookeeper for a signal from the cluster c ...................................................................... Patch Set 2: (7 comments) https://asterix-gerrit.ics.uci.edu/#/c/366/2//COMMIT_MSG Commit Message: Line 13: Thus, no more unexpected test failures. > Could we clean up the commit message to only contain this text and the Chan Done https://asterix-gerrit.ics.uci.edu/#/c/366/2/asterix-app/src/main/java/org/apache/asterix/hyracks/bootstrap/CCApplicationEntryPoint.java File asterix-app/src/main/java/org/apache/asterix/hyracks/bootstrap/CCApplicationEntryPoint.java: Line 119: feedServer.join(); > Should there be code here to update Zookeeper that the cluster is now down? It should be there. But I prefer we don't add it now and figure out the design of the lifecycle and state reporting. I am very sure that if we add it now, it will be changed soon and it will not add much of a value. actually, probably the only value we get from this change is that tests don't fail. https://asterix-gerrit.ics.uci.edu/#/c/366/2/asterix-events/src/main/java/org/apache/asterix/event/service/AsterixEventServiceUtil.java File asterix-events/src/main/java/org/apache/asterix/event/service/AsterixEventServiceUtil.java: Line 186: private static void injectAsterixLogPropertyFile(String asterixInstanceDir, AsterixInstance asterixInstance) > Sure, delete it. Done https://asterix-gerrit.ics.uci.edu/#/c/366/2/asterix-events/src/main/java/org/apache/asterix/event/service/ClusterStateWatcher.java File asterix-events/src/main/java/org/apache/asterix/event/service/ClusterStateWatcher.java: Line 41: this.clusterStatePath = ZooKeeperService.ASTERIX_INSTANCE_BASE_PATH + File.separator + clusterName > This path is used multiple times in different classes. It could be factored Done Line 46: public ClusterState getClusterState() throws Exception { > I think this method should be called something like "waitForClusterStart()" Done Line 63: public void monitorStateChange() { > Could this method be private? We don't want anyone calling it except the mo Done Line 76: clusterState = ClusterState.values()[(Integer.parseInt(Byte.toString(b[0])))]; > Can't we just cast a byte to an int without going through strings? Done -- To view, visit https://asterix-gerrit.ics.uci.edu/366 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ib730f50ab2fb492f3cf973d1cf2f03b34e24e5b3 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: abdullah alamoudi Gerrit-Reviewer: Chris Hillery Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Murtadha Hubail Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes