You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by hs...@apache.org on 2012/06/03 03:19:08 UTC

svn commit: r1345613 - /incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java

Author: hshreedharan
Date: Sun Jun  3 01:19:07 2012
New Revision: 1345613

URL: http://svn.apache.org/viewvc?rev=1345613&view=rev
Log:
FLUME-1226. FailoverRpcClient should check for NULL batch-size property.

(Mubarak Seyed via Hari Shreedharan)


Modified:
    incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java

Modified: incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java
URL: http://svn.apache.org/viewvc/incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java?rev=1345613&r1=1345612&r2=1345613&view=diff
==============================================================================
--- incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java (original)
+++ incubator/flume/trunk/flume-ng-sdk/src/main/java/org/apache/flume/api/FailoverRpcClient.java Sun Jun  3 01:19:07 2012
@@ -109,7 +109,6 @@ public class FailoverRpcClient extends A
         maxTries = hosts.size();
       }
     }
-    Integer batchSize;
     try {
       batchSize = Integer.parseInt(properties.getProperty("batch-size"));
       if (batchSize == null){
@@ -269,7 +268,7 @@ public class FailoverRpcClient extends A
       try {
         localClient =
             RpcClientFactory.getDefaultInstance(hosts.get(count).getHostName(),
-                hosts.get(count).getPort());
+                hosts.get(count).getPort(), batchSize);
         lastCheckedhost = count;
         return localClient;
       } catch (FlumeException e) {