[
https://issues.apache.org/jira/browse/FLUME-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282194#comment-13282194
]
Mubarak Seyed commented on FLUME-1226:
--------------------------------------
Please close this JIRA as tested with old client code, latest trunk catches
NumberFormatException and defaults batch-size to DEFAULT_BATCH_SIZE value.
Thanks.
> FailoverRpcClient should check for NULL batch-size property
> -----------------------------------------------------------
>
> Key: FLUME-1226
> URL: https://issues.apache.org/jira/browse/FLUME-1226
> Project: Flume
> Issue Type: Bug
> Reporter: Mubarak Seyed
> Assignee: Mubarak Seyed
>
> If client doesn't specify the "batch-size" then configureHosts() should
> default batch-size value to DEFAULT_BATCH_SIZE otherwise it throws
> NumberFormatException and breaks the client AvroRpc calls.
> {code}
> 2012-05-24 04:39:21,749 WARN api.FailoverRpcClient: Batch Size null is
> invalid - assigning default size
> java.lang.NumberFormatException: null
> at java.lang.Integer.parseInt(Integer.java:417)
> at java.lang.Integer.parseInt(Integer.java:499)
> at
> org.apache.flume.api.FailoverRpcClient.configureHosts(FailoverRpcClient.java:114)
> at
> org.apache.flume.api.FailoverRpcClient.configure(FailoverRpcClient.java:305)
> at
> org.apache.flume.api.RpcClientFactory.getInstance(RpcClientFactory.java:83)
> {code}
--
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