Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E78AC118A5 for ; Sun, 18 May 2014 15:00:51 +0000 (UTC) Received: (qmail 76989 invoked by uid 500); 18 May 2014 14:35:49 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 64171 invoked by uid 500); 18 May 2014 14:10:49 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 55149 invoked by uid 99); 18 May 2014 13:57:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 13:57:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of glahiru@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 13:57:32 +0000 Received: by mail-wi0-f169.google.com with SMTP id hi2so4086911wib.2 for ; Sun, 18 May 2014 06:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ai0LOVO+ie42IxkY0VFPwZ2eu7yB5yWvIq3H9l/nHNM=; b=atqzId9LTwTLO3X2XatGx2w78TH2JcYDVKhtV5MFaPm3e9fh0MQ891yuEmFPTrZxaC qAmoLl2A/0VnhdjPGuGpdqyqrwiQ6ExzPAQRXzAuAzjKNVnl0I8cEHOwMzLvapMPpLxQ NcXFu1VH9/emB46wou9pGtsZbsNnys2DfBLKNes67wE7y84i4lB6NfCPeOmGhqvFKIyN MgHb1FsP4hCvi9XkERXrGsrUPF4tMl7MgIgpxR7XWc/KKnAGZ7TM6ZOnTt7NVpWxPtOW +hdiCZymR/qZCjPpD1QZlurvDDLkrVLXd/TqQ8EuUps1FlrDL8ubOHnGFJkf6ia+rzQH tIBg== MIME-Version: 1.0 X-Received: by 10.194.185.148 with SMTP id fc20mr24352970wjc.27.1400421431311; Sun, 18 May 2014 06:57:11 -0700 (PDT) Received: by 10.216.191.136 with HTTP; Sun, 18 May 2014 06:57:11 -0700 (PDT) Date: Sun, 18 May 2014 09:57:11 -0400 Message-ID: Subject: Thrift service operation exception handling From: Lahiru Gunathilake To: dev Content-Type: multipart/alternative; boundary=047d7bdcab7cf3051c04f9ad056f X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdcab7cf3051c04f9ad056f Content-Type: text/plain; charset=UTF-8 Hi all, When I went through the exception handling in thrift services I see we have bunch of exception types defined in thrift and non of them are really thrown in any of the service operations. All these exceptions are stored in airavata-api-stubs module and airavata-api-server is having a dependency to airavata-api-stubs. Having a dependency to stub from the service is little awkward to me in web services point but I am not sure about thrift. If this is wrong I think we have to move this common code to some other place. Issue comes when I try to implement orchestrator validateExperiment operation where I have to throw an experiment defined in airavata-api-stubs and it was little awkward to have a dependency to airavata-api-stubs from orchestrator-server and orchestrator-client. Same exception has to be thrown by the airavata-server's launchExperiment method. I think these exception classes and common code can go to data-models module which is shared across both the orchestrator and airavata-server thrift services. Please correct me if I am wrong. Lahiru -- System Analyst Programmer PTI Lab Indiana University --047d7bdcab7cf3051c04f9ad056f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

When I went through the excepti= on handling in thrift services I see we have bunch of exception types defin= ed in thrift and non of them are really thrown in any of the service operat= ions.
=C2=A0 =C2=A0 All these exceptions are stored in airavata-api-stubs mo= dule and airavata-api-server is having a dependency to airavata-api-stubs. = Having a dependency to stub from the service is little awkward to me in web= services point but I am not sure about thrift. If this is wrong I think we= have to move this common code to some other place.

Issue comes when I try to implement orchestrator valida= teExperiment operation where I have to throw an experiment defined in airav= ata-api-stubs and it was little awkward to have a dependency to airavata-ap= i-stubs from orchestrator-server and orchestrator-client. Same exception ha= s to be thrown by the airavata-server's launchExperiment method. I thin= k these exception classes and common code can go to data-models module whic= h is shared across both the orchestrator and airavata-server thrift service= s.

Please correct me if I am wrong.

Lahiru

--
System Analyst Programmer<= div>PTI Lab
Indiana University
--047d7bdcab7cf3051c04f9ad056f--