[
https://issues.apache.org/jira/browse/FLUME-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660854#comment-14660854
]
Hudson commented on FLUME-2753:
-------------------------------
UNSTABLE: Integrated in Flume-trunk-hbase-1 #118 (See
[https://builds.apache.org/job/Flume-trunk-hbase-1/118/])
FLUME-2753 Error when specifying empty replace string in Search and Replace
Interceptor (apaliwal:
http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=32ef64dd6b4ee5457832324b3d401a6d724d92bd)
*
flume-ng-core/src/main/java/org/apache/flume/interceptor/SearchAndReplaceInterceptor.java
*
flume-ng-core/src/test/java/org/apache/flume/interceptor/TestSearchAndReplaceInterceptor.java
> Error when specifying empty replace string in Search and Replace Interceptor
> ----------------------------------------------------------------------------
>
> Key: FLUME-2753
> URL: https://issues.apache.org/jira/browse/FLUME-2753
> Project: Flume
> Issue Type: Bug
> Reporter: Johny Rufus
> Assignee: Johny Rufus
> Fix For: v1.7.0
>
> Attachments: FLUME-2753-1.patch, FLUME-2753.patch
>
>
> The user guide specifies that the following configuration
> a1.sources.avroSrc.interceptors.search-replace.replaceString =
> will replace the search pattern with an empty string, but the following error
> is observed and there is no way to specify an empty replace string
> java.lang.NullPointerException: Must supply a replacement string
> replaceString (empty is ok)
> at
> com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
> at
> org.apache.flume.interceptor.SearchAndReplaceInterceptor$Builder.configure(SearchAndReplaceInterceptor.java:108)
> at
> org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:110)
> We need to modify the SearchAndReplaceInterceptor to accept null values for
> replacement string and use empty string in that case
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)