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 68DDF200C56 for ; Fri, 14 Apr 2017 19:22:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6768C160BA3; Fri, 14 Apr 2017 17:22:55 +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 B0B57160B8C for ; Fri, 14 Apr 2017 19:22:54 +0200 (CEST) Received: (qmail 20918 invoked by uid 500); 14 Apr 2017 17:22:54 -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 20907 invoked by uid 99); 14 Apr 2017 17:22:53 -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; Fri, 14 Apr 2017 17:22:53 +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 248A7C0B93 for ; Fri, 14 Apr 2017 17:22:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5nUyDObT-z8e for ; Fri, 14 Apr 2017 17:22:48 +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 A827D5FAD8 for ; Fri, 14 Apr 2017 17:22:47 +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 v3EHMkRO031430; Fri, 14 Apr 2017 17:22:46 GMT Message-Id: <201704141722.v3EHMkRO031430@ip-10-146-233-104.ec2.internal> Date: Fri, 14 Apr 2017 17:22:46 +0000 From: "Sailesh Mukil (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Tim Armstrong Reply-To: sailesh@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5198=3A_Error_messages_are_sometimes_dropped_before_reaching_client=0A?= X-Gerrit-Change-Id: I5d9d63610eb0d2acae3a9303ce46e1410727ce87 X-Gerrit-ChangeURL: X-Gerrit-Commit: 50b58ae69be1265398e29b9073cdf37fb7447ee6 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, 14 Apr 2017 17:22:55 -0000 Sailesh Mukil has posted comments on this change. Change subject: IMPALA-5198: Error messages are sometimes dropped before reaching client ...................................................................... Patch Set 2: (3 comments) http://gerrit.cloudera.org:8080/#/c/6627/1//COMMIT_MSG Commit Message: Line 7: IMPALA-5198: Error messages are sometimes dropped before reaching client > Maybe describe the symptoms/bug more generally, so it's easier to understan Done http://gerrit.cloudera.org:8080/#/c/6627/1/be/src/service/impala-beeswax-server.cc File be/src/service/impala-beeswax-server.cc: Line 288: if (exec_state->coord() != NULL) { > Is this addition related to the change? I don't understand why we're printi It's up for debate whether we want to add this or not. I added it to be consistent with the HS2 server. https://github.com/apache/incubator-impala/blob/6a9df540967e07b09524268d0cc52b7d10835676/be/src/service/impala-hs2-server.cc#L826 Technically GetLog()/get_log() is not just for retrieving just error logs, it can be used at any point in the query to get any sort of information available. However, our use of it in beeswax seems just to be for retrieving errors. If we think this is unnecessary for beeswax, I can go ahead and remove it. http://gerrit.cloudera.org:8080/#/c/6627/1/be/src/util/error-util.cc File be/src/util/error-util.cc: Line 123: const ArgType& arg4, const ArgType& arg5, const ArgType& arg6, const ArgType& arg7, > It seems like conceptually the problem is the Status(TStatus) constructor s I spent some time looking at the different places that TStatus is used, and although the best option would be to make TStatus identical in structure to Status (it currently isn't), doing so would require a lot of changes and cause inconsistencies between the different TStatus objects (thrift::TStatus, TCLIService::TStatus, impala::TStatus). Some of these are exposed to clients and would cause a breaking change. So I decided to just move this unwrapping to the Status level by introducing a function called Status::FromThrift(), which makes the wrapping and unrwrapping happen at the same level. -- To view, visit http://gerrit.cloudera.org:8080/6627 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5d9d63610eb0d2acae3a9303ce46e1410727ce87 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Sailesh Mukil Gerrit-Reviewer: Sailesh Mukil Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes