[
https://issues.apache.org/jira/browse/FLUME-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282207#comment-13282207
]
Mubarak Seyed commented on FLUME-1226:
--------------------------------------
This JIRA is still valid as batchSize variable is not set in configureHosts(),
instead it creates the local batchSize variable inside configureHosts(), if we
remove the local batchSize variable then it sets the value to one in
AbstractRpcClient
{code}
java.lang.NullPointerException
at
org.apache.flume.api.AbstractRpcClient.getBatchSize(AbstractRpcClient.java:33)
{code}
> 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