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 AF5C5200CE0 for ; Fri, 11 Aug 2017 02:02:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ADE4E16C728; Fri, 11 Aug 2017 00:02:12 +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 023E316C727 for ; Fri, 11 Aug 2017 02:02:11 +0200 (CEST) Received: (qmail 72405 invoked by uid 500); 11 Aug 2017 00:02:11 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 72391 invoked by uid 99); 11 Aug 2017 00:02:09 -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; Fri, 11 Aug 2017 00:02:09 +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 485F01A008A for ; Fri, 11 Aug 2017 00:02:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KquIgP1ROgSB for ; Fri, 11 Aug 2017 00:02:07 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EE1265F1BA for ; Fri, 11 Aug 2017 00:02:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v7B0249L025583; Fri, 11 Aug 2017 00:02:04 GMT Message-Id: <201708110002.v7B0249L025583@ip-10-146-233-104.ec2.internal> Date: Fri, 11 Aug 2017 00:02:04 +0000 From: "Jim Apple (Code Review)" To: Tim Armstrong , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Jim Apple Reply-To: jbapple-impala@apache.org X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_PREVIEW=3A_IMPALA-2615=3A_support_=5B=5Bnodiscard=5D=5D_on_Status=0A?= X-Gerrit-Change-Id: I972543af2e9f98b12dcbb5479b4c1a7d53952197 X-Gerrit-ChangeURL: X-Gerrit-Commit: dea57e3c0c09dc963514464e3e6f523872d8e0af 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 archived-at: Fri, 11 Aug 2017 00:02:12 -0000 Jim Apple has posted comments on this change. Change subject: PREVIEW: IMPALA-2615: support [[nodiscard]] on Status ...................................................................... Patch Set 5: (14 comments) Halfway through reviewing; though we should hash some of this out before I do the second half. http://gerrit.cloudera.org:8080/#/c/7253/5/be/CMakeLists.txt File be/CMakeLists.txt: Line 73: if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) Should this be limited to GCC, too? Line 74: # -Wno-placement-new: avoid spurious warnings from boost::function. Can you describe this error a bit more? Line 75: # -faligned-new: new will automatically align types. Otherwise "new Counter()" in the It is my understanding that new produces things that are as aligned as void * (aka 8 bytes). Can you describe a bit more what's going on with this warning? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/exec/hbase-table-scanner.cc File be/src/exec/hbase-table-scanner.cc: Line 764: discard_result(JniUtil::FreeGlobalRef(env, resultscanner_)); What is the rationale for the difference between this line and 761, where you LOG(WARNING)? See also below. http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/exec/hbase-table-scanner.h File be/src/exec/hbase-table-scanner.h: Line 88: static Status Init() WARN_UNUSED_RESULT; Once we move to GCC7, we no longer need WARN_UNUSED_RESULT? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/rpc/auth-provider.h File be/src/rpc/auth-provider.h: Line 51: /// that fix wrap http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/rpc/thrift-client.cc File be/src/rpc/thrift-client.cc: Line 40: if (!init_status_.ok()) return init_status_; RETURN_IF_ERROR? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/rpc/thrift-client.h File be/src/rpc/thrift-client.h: Line 161: if (!init_status_.ok()) return; and LOG? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/runtime/data-stream-recvr.cc File be/src/runtime/data-stream-recvr.cc: Line 346: Status status = mgr_->DeregisterRecvr(fragment_instance_id(), dest_node_id()); const http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/runtime/fragment-instance-state.cc File be/src/runtime/fragment-instance-state.cc: Line 100: discard_result(WaitForPrepare()); // make sure Prepare() finished Why is discard OK here? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/runtime/hbase-table-factory.cc File be/src/runtime/hbase-table-factory.cc: Line 95: discard_result(JniUtil::FreeGlobalRef(env, connection_)); Why is discard OK here? http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/scheduling/scheduler-test-util.cc File be/src/scheduling/scheduler-test-util.cc: Line 510: Status status = scheduler_->Init(); const http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/service/fe-support.cc File be/src/service/fe-support.cc: Line 72: THROW_IF_ERROR(LlvmCodeGen::InitializeLlvm(true), env, JniUtil::internal_exc_class()); I'm surprised you want to throw in a function with extern "C" linkage. http://gerrit.cloudera.org:8080/#/c/7253/5/be/src/service/impala-server.cc File be/src/service/impala-server.cc: Line 697: Status status = profile_logger_->Flush(); const -- To view, visit http://gerrit.cloudera.org:8080/7253 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I972543af2e9f98b12dcbb5479b4c1a7d53952197 Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Jim Apple Gerrit-HasComments: Yes