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 145CC200AE3 for ; Wed, 4 May 2016 19:29:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12CF31609FC; Wed, 4 May 2016 17:29:17 +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 5C29C1609A1 for ; Wed, 4 May 2016 19:29:16 +0200 (CEST) Received: (qmail 2881 invoked by uid 500); 4 May 2016 17:29:15 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 2871 invoked by uid 99); 4 May 2016 17:29:15 -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; Wed, 04 May 2016 17:29:15 +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 3DDBD1A0022 for ; Wed, 4 May 2016 17:29:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hri5pqy2bkUW for ; Wed, 4 May 2016 17:29:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id E31EA5F23C for ; Wed, 4 May 2016 17:29:13 +0000 (UTC) Received: (qmail 2868 invoked by uid 99); 4 May 2016 17:29:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 17:29:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E8B712C1F60 for ; Wed, 4 May 2016 17:29:12 +0000 (UTC) Date: Wed, 4 May 2016 17:29:12 +0000 (UTC) From: "Dan Smith (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (GEODE-1348) Exceptions thrown from Functions are inconsistently wrapped with FunctionException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 May 2016 17:29:17 -0000 Dan Smith created GEODE-1348: -------------------------------- Summary: Exceptions thrown from Functions are inconsistently wrapped with FunctionException Key: GEODE-1348 URL: https://issues.apache.org/jira/browse/GEODE-1348 Project: Geode Issue Type: Bug Components: functions Reporter: Dan Smith I wrote some tests for how exceptions throw within a function are returned to the executor of the function. What I'm seeing is that how the function is returned varies based on the topology and region type used. Specifically, in almost all cases an exception thrown from within a Function is wrapped in a FunctionException. But when using onRegion with a partitioned region from an accessor, the exception is not wrapped in a FunctionException but is instead thrown directly. Exceptions should be handled consistently. Since most cases seem to wrap the exception in a FunctionException, the PR accessor case probably should too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)