[
https://issues.apache.org/jira/browse/FLUME-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lionel Herbet updated FLUME-2628:
---------------------------------
Attachment: Netcat_WithUnitTest.patch
I did more modification. Maybe too much.
I added Unit Test to Netcat on more functionalities that only encoding as i did
not found Unit Test for the NetcatSource.
Here the functionalities i added :
Add an 'encoding' configuration option to identify input encoding for the
netcat source. The default value for the encoding parameter is "utf-8".
Moreover a code refactoring was performed to use IOUtils from commons-io
instead of specific code for readability purpose.
Instead of exiting when an event exceed the maximum line length configured,
this one is discarded.
Finaly a batch option can be configured to send event in batch to the Channel
In can revert to a subset of these functionalities. Tell me as you want.
> Add an optional parameter to specify the expected input text encoding for the
> netcat sourcef the netcat source
> --------------------------------------------------------------------------------------------------------------
>
> Key: FLUME-2628
> URL: https://issues.apache.org/jira/browse/FLUME-2628
> Project: Flume
> Issue Type: Improvement
> Components: Sinks+Sources
> Affects Versions: v1.5.1
> Reporter: Lionel Herbet
> Priority: Trivial
> Labels: newbie, patch
> Fix For: v1.5.2
>
> Attachments: Netcat_Encoding.patch, Netcat_WithUnitTest.patch
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Add the 'encoding' configuration parameter to specify the expected text
> encoding of the netcat source in input.
> This parameter is optional and defaulted to "utf-8" (same value as the one
> hardcoded before the patch)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)