Return-Path: X-Original-To: apmail-bigtop-user-archive@www.apache.org Delivered-To: apmail-bigtop-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76D0C1058F for ; Thu, 29 Aug 2013 20:32:45 +0000 (UTC) Received: (qmail 79541 invoked by uid 500); 29 Aug 2013 20:32:45 -0000 Delivered-To: apmail-bigtop-user-archive@bigtop.apache.org Received: (qmail 79402 invoked by uid 500); 29 Aug 2013 20:32:41 -0000 Mailing-List: contact user-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bigtop.apache.org Delivered-To: mailing list user@bigtop.apache.org Received: (qmail 79394 invoked by uid 99); 29 Aug 2013 20:32:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 20:32:40 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jayunit100@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 20:32:33 +0000 Received: by mail-lb0-f179.google.com with SMTP id x18so1155882lbi.38 for ; Thu, 29 Aug 2013 13:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vDpi+ODfrQWMrhgnMmtLfi1UttWOv305OPiOJ1ByO2A=; b=sxp2NKcBzQkZuRAxxpfqrjVDnXPmzlOnHXGpF1wyCB0lkK4P0ibmc5KX13hv6Adrbl jckg6GJ+aFF1ILIzrviz0GwRpKkxs/QZNqWeUAwdo2opC54ZNjh+8y36F3HqEOUX9Zhn LlhPm1Uj0YsjVJscugkxy6ZzjdPe4HyZaADilWQInaFZw7WdnBrFiUCGP5trF4ikiAZt +k1GHGj6yyTINWZrEV2+Azov5qrypkemo4HxtImrW2kOy2NqAvQI86RhrnvRq4ecd7GR b/Ufa6PZ6SHH7s7NZVpMAI0A2p2a5olZzQe86Rq5pA3r0VK19kD291XixZiGcd4k/IEy NXNw== MIME-Version: 1.0 X-Received: by 10.112.40.110 with SMTP id w14mr2790936lbk.42.1377808333285; Thu, 29 Aug 2013 13:32:13 -0700 (PDT) Received: by 10.112.126.231 with HTTP; Thu, 29 Aug 2013 13:32:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Aug 2013 16:32:13 -0400 Message-ID: Subject: Re: ITest Shell.groovy hangs From: Jay Vyas To: user@bigtop.apache.org Content-Type: multipart/alternative; boundary=001a11336bba462ec804e51c00d1 X-Virus-Checked: Checked by ClamAV on apache.org --001a11336bba462ec804e51c00d1 Content-Type: text/plain; charset=ISO-8859-1 Thanks roman. What is this patch doing ? how is it more defensive then the existing one? On Thu, Aug 29, 2013 at 1:07 PM, Roman Shaposhnik wrote: > On Wed, Aug 28, 2013 at 6:30 PM, Jay Vyas wrote: > > Hi bigtop ! Im finding that a complex shell script, run via Shell.groovy, > > hangs when i call it. > > > > Ive foud that the script fails after "PROCES :::::::: READ LINES" below, > in > > the debugging statement. > > > > This is a shell script which starts a flume sink up using nohup, and then > > cat's to a file that the sink is listening on. The script completes > > normally when run from anywhere in the terminal. > > Could you possibly attach a script? > > > Any thoughts on why the ITest Shell would hang ? > > I'm surprised it fails that way, since there's quite a big of existing > scripts > that get pumped through it. To get you unstuck, though, you can > try to do what I've done in the attached diff and see if that makes > any difference. > > Thanks, > Roman. > -- Jay Vyas http://jayunit100.blogspot.com --001a11336bba462ec804e51c00d1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks roman.=A0 What is this patch doing ? how is it more= defensive then the existing one?

<= br>
On Thu, Aug 29, 2013 at 1:07 PM, Roman Shapos= hnik <rvs@apache.org> wrote:
On Wed, Aug 28, 2013 at 6:= 30 PM, Jay Vyas <jayunit100@gmai= l.com> wrote:
> Hi bigtop ! Im finding that a complex shell script, run via Shell.groo= vy,
> hangs when i call it.
>
> Ive foud that the script fails after "PROCES :::::::: READ LINES&= quot; below, in
> the debugging statement.
>
> This is a shell script which starts a flume sink up using nohup, and t= hen
> cat's to a file that the sink is listening on. =A0 The script comp= letes
> normally when run from anywhere in the terminal.

Could you possibly attach a script?

> Any thoughts on why the ITest Shell would hang ?

I'm surprised it fails that way, since there's quite a big of= existing scripts
that get pumped through it. To get you unstuck, though, you can
try to do what I've done in the attached diff and see if that makes
any difference.

Thanks,
Roman.



--
Jay Vyas
http://jayunit100.blogspo= t.com
--001a11336bba462ec804e51c00d1--