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 BAC22200D4A for ; Tue, 14 Nov 2017 01:28:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4F9E4160C06; Tue, 14 Nov 2017 00:28:25 +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 94E62160BF3 for ; Tue, 14 Nov 2017 01:28:24 +0100 (CET) Received: (qmail 63800 invoked by uid 500); 14 Nov 2017 00:28:13 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 63791 invoked by uid 99); 14 Nov 2017 00:28:13 -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, 14 Nov 2017 00:28:13 +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 E5518C5340 for ; Tue, 14 Nov 2017 00:28:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.92 X-Spam-Level: X-Spam-Status: No, score=0.92 tagged_above=-999 required=6.31 tests=[SPF_FAIL=0.919, 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 b0G7JvqofBUT for ; Tue, 14 Nov 2017 00:28:12 +0000 (UTC) Received: from vitalstatistix.ics.uci.edu (vitalstatistix.ics.uci.edu [128.195.52.38]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 596EE5F640 for ; Tue, 14 Nov 2017 00:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vitalstatistix.ics.uci.edu (Postfix) with ESMTP id 6BE7D100738; Mon, 13 Nov 2017 16:28:10 -0800 (PST) Date: Mon, 13 Nov 2017 16:28:10 -0800 From: "Xikui Wang (Code Review)" To: Steven Jacobs CC: Ildar Absalyamov , abdullah alamoudi , Till Westmann , Dmitry Lychagin , Jenkins Reply-To: xkkwww@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: [ASTERIXDB-1911][HYR,RT,CLUS] Fixes and Improvements for Pre... X-Gerrit-Change-Id: I8f493c1fa977d07dfe8a875f9ebe9515d01d1473 X-Gerrit-ChangeURL: X-Gerrit-Commit: 5eb093f0406689f280b88b40420ba925b3fe7055 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.12.7 Message-Id: <20171114002810.6BE7D100738@vitalstatistix.ics.uci.edu> archived-at: Tue, 14 Nov 2017 00:28:35 -0000 Xikui Wang has posted comments on this change. Change subject: [ASTERIXDB-1911][HYR,RT,CLUS] Fixes and Improvements for PreDistributed Jobs ...................................................................... Patch Set 22: (4 comments) Several comments about minor issues. https://asterix-gerrit.ics.uci.edu/#/c/2045/22/asterixdb/asterix-active/src/main/java/org/apache/asterix/active/DeployedJobService.java File asterixdb/asterix-active/src/main/java/org/apache/asterix/active/DeployedJobService.java: Line 46: private static final int poolSize = 1; > MAJOR SonarQube violation: please address this. https://asterix-gerrit.ics.uci.edu/#/c/2045/22/hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/integration/DeployedJobSpecsTest.java File hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/integration/DeployedJobSpecsTest.java: Line 129: verify(cc, Mockito.timeout(5000).times(4)).getDeployedJobSpecStore(); use a single private static final int to replace this and all following occurrences. it would be better to have a meaningful name. Line 130: verify(nc1, Mockito.timeout(5000).times(2)).storeActivityClusterGraph(any(), any()); Is there any particular reason to chose 4,2,8,12 for the times? Line 173: Thread.sleep(10000); > MAJOR SonarQube violation: do we have more deterministic method instead of sleep? this is likely to fail if the system is overloaded. Also, sleep 10 seconds for each build seems expensive too (if we have a better solution)... -- To view, visit https://asterix-gerrit.ics.uci.edu/2045 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I8f493c1fa977d07dfe8a875f9ebe9515d01d1473 Gerrit-PatchSet: 22 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Steven Jacobs Gerrit-Reviewer: Anon. E. Moose #1000171 Gerrit-Reviewer: Dmitry Lychagin Gerrit-Reviewer: Ildar Absalyamov Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Steven Jacobs Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: Xikui Wang Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes