[
https://issues.apache.org/jira/browse/FLUME-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248884#comment-13248884
]
Prasad Mujumdar commented on FLUME-1108:
----------------------------------------
@Hari, please attach the patch on Jira. I will commit it to trunk.
> FILE_ROLL sink doesn't accept value 0 for unlimited wait time before rolling
> file
> ---------------------------------------------------------------------------------
>
> Key: FLUME-1108
> URL: https://issues.apache.org/jira/browse/FLUME-1108
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Affects Versions: v1.2.0
> Environment: [CentOS 5.7 64-bit]
> Reporter: Will McQueen
> Assignee: Hari Shreedharan
> Fix For: v1.2.0
>
> Attachments: FLUME-1108-1.patch
>
>
> Using FILE_ROLL sink and the following props for it:
> sink.directory=/home/will/logs
> sink.rollInterval=0
> ...the logical expectation should should be that the file never gets rolled
> -- all output should go to single file.
> 2012-04-06 10:50:33,272 ERROR lifecycle.LifecycleSupervisor: Unable to start
> SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@d6089a5
> counterGroup:{ name:null counters:{} } } - Exception follows.
> java.lang.IllegalArgumentException
> at
> java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:420)
> at
> org.apache.flume.sink.RollingFileSink.start(RollingFileSink.java:104)
> at
> org.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:43)
> at org.apache.flume.SinkRunner.start(SinkRunner.java:79)
> at
> org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:221)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
--
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