You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@crunch.apache.org by "Barry,Nathan" <NB...@CERNER.COM> on 2014/04/10 00:03:41 UTC

Pipeline.done returns "READY" when nothing is staged

I found it odd that  Pipeline.done() returns a PipelineResult with a status of “READY” when there is nothing staged in the pipeline when done is called.  It makes sense to not return “SUCCEEDED” as that implies that something happened successfully, but “READY” isn’t a terminal state but it’s an initial state so checking for a status of READY after calling done is counterintuitive.

Is this expected and desired?  Or should an alternate successful-like status be returned, such as “DONE” or “DONE-NO-OP"

Nathan

CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Re: Pipeline.done returns "READY" when nothing is staged

Posted by "Barry,Nathan" <NB...@CERNER.COM>.
Tx.. Logged https://issues.apache.org/jira/browse/CRUNCH-374

From: Josh Wills <jo...@gmail.com>>
Reply-To: "user@crunch.apache.org<ma...@crunch.apache.org>" <us...@crunch.apache.org>>
Date: Wednesday, April 9, 2014 at 5:05 PM
To: "user@crunch.apache.org<ma...@crunch.apache.org>" <us...@crunch.apache.org>>
Subject: Re: Pipeline.done returns "READY" when nothing is staged


Probably an oversight, agree that DONE or a custom status would make more sense.

On Apr 9, 2014 3:04 PM, "Barry,Nathan" <NB...@cerner.com>> wrote:
I found it odd that  Pipeline.done() returns a PipelineResult with a status of “READY” when there is nothing staged in the pipeline when done is called.  It makes sense to not return “SUCCEEDED” as that implies that something happened successfully, but “READY” isn’t a terminal state but it’s an initial state so checking for a status of READY after calling done is counterintuitive.

Is this expected and desired?  Or should an alternate successful-like status be returned, such as “DONE” or “DONE-NO-OP"

Nathan
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024<tel:%28%2B1%29%20%28816%29221-1024>.

Re: Pipeline.done returns "READY" when nothing is staged

Posted by Josh Wills <jo...@gmail.com>.
Probably an oversight, agree that DONE or a custom status would make more
sense.
On Apr 9, 2014 3:04 PM, "Barry,Nathan" <NB...@cerner.com> wrote:

>  I found it odd that  Pipeline.done() returns a PipelineResult with a
> status of "READY" when there is nothing staged in the pipeline when done is
> called.  It makes sense to not return "SUCCEEDED" as that implies that
> something happened successfully, but "READY" isn't a terminal state but
> it's an initial state so checking for a status of READY after calling done
> is counterintuitive.
>
>  Is this expected and desired?  Or should an alternate successful-like
> status be returned, such as "DONE" or "DONE-NO-OP"
>
>  Nathan
>  CONFIDENTIALITY NOTICE This message and any included attachments are from
> Cerner Corporation and are intended only for the addressee. The information
> contained in this message is confidential and may constitute inside or
> non-public information under international, federal, or state securities
> laws. Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you are not
> the addressee, please promptly delete this message and notify the sender of
> the delivery error by e-mail or you may call Cerner's corporate offices in
> Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>