cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michał Michalski (Updated) (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-4166) BulkRecordWriter constructor crashes on wrong default parameter in conf.get() which is letter instead of number
Date Wed, 18 Apr 2012 11:45:45 GMT

     [ 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

       

Mime
View raw message