You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Jackey Lyu (JIRA)" <ji...@apache.org> on 2015/09/06 09:26:45 UTC

[jira] [Created] (FLUME-2785) Add default non-zero threads value for Thrift source, to avoid OutofMemoryException

Jackey Lyu created FLUME-2785:
---------------------------------

             Summary: Add default non-zero threads value for Thrift source, to avoid OutofMemoryException
                 Key: FLUME-2785
                 URL: https://issues.apache.org/jira/browse/FLUME-2785
             Project: Flume
          Issue Type: Improvement
          Components: Sinks+Sources
    Affects Versions: 1.6
         Environment: linux_64 2.6.32.57, Oracle JDK 1.7
            Reporter: Jackey Lyu
            Priority: Minor
             Fix For: notrack


The current implementation of thrift source in `flume-ng-core/src/main/java/org/apache/flume/source/ThriftSource.java`, there is something can be done to improve the usability of thrift source.

If users did not config the `threads` parameter for thrift source, the default threads number will be Integer.MAX_VALUE, which may easily cause OutofMemoryException.

It's better to add a non-zero default value for it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)