You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michał Michalski (Updated JIRA)" <ji...@apache.org> on 2012/04/18 13:45:45 UTC

[jira] [Updated] (CASSANDRA-4166) BulkRecordWriter constructor crashes on wrong default parameter in conf.get() which is letter instead of number

     [ https://issues.apache.org/jira/browse/CASSANDRA-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michał Michalski updated CASSANDRA-4166:
----------------------------------------

    Attachment: trunk-4166.txt

Patch. Kind of obvious ones ;)
                
> BulkRecordWriter constructor crashes on wrong default parameter in conf.get() which is letter instead of number
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4166
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4166
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Michał Michalski
>         Attachments: trunk-4166.txt
>
>
> I've pulled the newest code and my bulkloading started to crash on:
> {noformat}2012-04-18 12:34:09,620 WARN org.apache.hadoop.mapred.Child: Error running child
> java.lang.NumberFormatException: For input string: "O"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48){noformat}
> The problem is this line and default parameter of conf.get() which was accidentally set to "O" (letter O) instead of 0 (zero).
> {noformat}maxFailures = Integer.valueOf(conf.get(MAX_FAILED_HOSTS, "0"));{noformat}

--
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