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 9AC67200BD3 for ; Mon, 21 Nov 2016 19:31:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 993F9160AEF; Mon, 21 Nov 2016 18:31:00 +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 E5A00160AF9 for ; Mon, 21 Nov 2016 19:30:59 +0100 (CET) Received: (qmail 64104 invoked by uid 500); 21 Nov 2016 18:30:59 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 64068 invoked by uid 99); 21 Nov 2016 18:30:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 18:30:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EC7562C4C84 for ; Mon, 21 Nov 2016 18:30:58 +0000 (UTC) Date: Mon, 21 Nov 2016 18:30:58 +0000 (UTC) From: "Zelaine Fong (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5056) UserException does not write full message to log MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 21 Nov 2016 18:31:00 -0000 [ https://issues.apache.org/jira/browse/DRILL-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zelaine Fong updated DRILL-5056: -------------------------------- Assignee: Paul Rogers > UserException does not write full message to log > ------------------------------------------------ > > Key: DRILL-5056 > URL: https://issues.apache.org/jira/browse/DRILL-5056 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.8.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > Priority: Minor > > A case occurred in which the External Sort failed during spilling. All that was written to the log was: > {code} > 2016-11-18 ... INFO o.a.d.e.p.i.xsort.ExternalSortBatch - User Error Occurred > {code} > As it turns out, there are two places in external sort that can throw a user exception. But, because the log contains neither line numbers nor detailed messages, it is not obvious which one was the cause. > When logging a user error, include the text provided when building the error. For example, consider the following external sort code: > {code} > throw UserException.resourceError(e) > .message("External Sort encountered an error while spilling to disk") > .addContext(e.getMessage() /* more detail */) > .build(logger); > {code} > The expected message is: > {code} > 2016-11-18 ... INFO o.a.d.e.p.i.xsort.ExternalSortBatch - User Error Occurred: External Sort encountered an error while spilling to disk (Disk write failed) > {code} > The part in parens is the cause of the error: the {{e.getMessage( )}} in the above code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)