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 B4B4C200CBE for ; Fri, 7 Jul 2017 12:25:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B343B168C87; Fri, 7 Jul 2017 10:25:20 +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 05F03168C82 for ; Fri, 7 Jul 2017 12:25:19 +0200 (CEST) Received: (qmail 70352 invoked by uid 500); 7 Jul 2017 10:25:19 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 70343 invoked by uid 99); 7 Jul 2017 10:25:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2017 10:25:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1D160E961F; Fri, 7 Jul 2017 10:25:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pvillard@apache.org To: commits@nifi.apache.org Message-Id: <723e24d720e64c60a4d5b65f6703556d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: nifi git commit: NIFI-4162: PutSQL batch update error message should include the cause Date: Fri, 7 Jul 2017 10:25:19 +0000 (UTC) archived-at: Fri, 07 Jul 2017 10:25:20 -0000 Repository: nifi Updated Branches: refs/heads/master 45f82dc85 -> 50c364a79 NIFI-4162: PutSQL batch update error message should include the cause Signed-off-by: Pierre Villard This closes #1992. Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/50c364a7 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/50c364a7 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/50c364a7 Branch: refs/heads/master Commit: 50c364a793e8605f0b6f2e48ef5e0e08cfcf817d Parents: 45f82dc Author: Koji Kawamura Authored: Fri Jul 7 18:11:41 2017 +0900 Committer: Pierre Villard Committed: Fri Jul 7 12:25:10 2017 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/nifi/processors/standard/PutSQL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/50c364a7/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java index cb3b198..7e75964 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java @@ -456,8 +456,8 @@ public class PutSQL extends AbstractSessionFactoryProcessor { } } - getLogger().error("Failed to update database due to a failed batch update. There were a total of {} FlowFiles that failed, {} that succeeded, " - + "and {} that were not execute and will be routed to retry; ", new Object[]{failureCount, successCount, retryCount}); + getLogger().error("Failed to update database due to a failed batch update, {}. There were a total of {} FlowFiles that failed, {} that succeeded, " + + "and {} that were not execute and will be routed to retry; ", new Object[]{e, failureCount, successCount, retryCount}, e); return;