You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Todd Lipcon (Created) (JIRA)" <ji...@apache.org> on 2012/04/20 02:30:41 UTC
[jira] [Created] (HADOOP-8295) ToolRunner.confirmPrompt spins if
stdin goes away
ToolRunner.confirmPrompt spins if stdin goes away
-------------------------------------------------
Key: HADOOP-8295
URL: https://issues.apache.org/jira/browse/HADOOP-8295
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Todd Lipcon
Priority: Minor
Currently, ToolRunner.confirmPrompt treats a "-1" response to its System.in.read() call the same as \n or \r. So, if stdin goes away, it can cause the JVM to spin in a loop. Instead, it should treat a -1 result as a "n" response.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Created] (HADOOP-8295) ToolRunner.confirmPrompt spins if
stdin goes away
Posted by Harsh J <ha...@cloudera.com>.
Hey Ronnie,
Follow the instructions at http://wiki.apache.org/hadoop/HowToContribute
On Fri, Apr 20, 2012 at 6:10 AM, Ronnie Ghose <ro...@gmail.com> wrote:
> sorry guys, going to ask: how would you suggest I start working on hadoop
> dev?
>
> thanks,
> -Ronnie
>
> On 19 April 2012 20:30, Todd Lipcon (Created) (JIRA) <ji...@apache.org>wrote:
>
>> ToolRunner.confirmPrompt spins if stdin goes away
>> -------------------------------------------------
>>
>> Key: HADOOP-8295
>> URL: https://issues.apache.org/jira/browse/HADOOP-8295
>> Project: Hadoop Common
>> Issue Type: Bug
>> Affects Versions: 2.0.0
>> Reporter: Todd Lipcon
>> Priority: Minor
>>
>>
>> Currently, ToolRunner.confirmPrompt treats a "-1" response to its
>> System.in.read() call the same as \n or \r. So, if stdin goes away, it can
>> cause the JVM to spin in a loop. Instead, it should treat a -1 result as a
>> "n" response.
>>
>> --
>> This message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators:
>> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
--
Harsh J
Re: [jira] [Created] (HADOOP-8295) ToolRunner.confirmPrompt spins if
stdin goes away
Posted by Ronnie Ghose <ro...@gmail.com>.
sorry guys, going to ask: how would you suggest I start working on hadoop
dev?
thanks,
-Ronnie
On 19 April 2012 20:30, Todd Lipcon (Created) (JIRA) <ji...@apache.org>wrote:
> ToolRunner.confirmPrompt spins if stdin goes away
> -------------------------------------------------
>
> Key: HADOOP-8295
> URL: https://issues.apache.org/jira/browse/HADOOP-8295
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Todd Lipcon
> Priority: Minor
>
>
> Currently, ToolRunner.confirmPrompt treats a "-1" response to its
> System.in.read() call the same as \n or \r. So, if stdin goes away, it can
> cause the JVM to spin in a loop. Instead, it should treat a -1 result as a
> "n" response.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>