[
https://issues.apache.org/jira/browse/FLUME-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458176#comment-13458176
]
Brock Noland commented on FLUME-1587:
-------------------------------------
Right, reconfig from encryption to no encryption. Technically the channel was
empty this could be supported, but not in the case where we have to replay any
part of encrypted logs (as part of normal replay or a full replay).
> FileChannel Encryption cannot be disabled on a running channel
> --------------------------------------------------------------
>
> Key: FLUME-1587
> URL: https://issues.apache.org/jira/browse/FLUME-1587
> Project: Flume
> Issue Type: Bug
> Components: Channel
> Affects Versions: v1.3.0
> Reporter: Brock Noland
> Priority: Minor
>
> If encryption is enabled and then disabled for a file channel and the agent
> is not restarted, the following exception is thrown.
> {noformat}
> java.lang.IllegalStateException: Channel closed [channel=channel1]. Due to
> java.lang.IllegalArgumentException: Encryption configuration must all null or
> all not null: encryptionKeyProvider =
> org.apache.flume.channel.file.encryption.JCEFileKeyProvider@4c221e9e,
> encryptionKeyAlias = null, encryptionCipherProvider = null
> at
> org.apache.flume.channel.file.FileChannel.createTransaction(FileChannel.java:322)
> at
> org.apache.flume.channel.BasicChannelSemantics.getTransaction(BasicChannelSemantics.java:118)
> at org.apache.flume.sink.LoggerSink.process(LoggerSink.java:61)
> at
> org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
> at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalArgumentException: Encryption configuration must
> all null or all not null: encryptionKeyProvider =
> org.apache.flume.channel.file.encryption.JCEFileKeyProvider@4c221e9e,
> encryptionKeyAlias = null, encryptionCipherProvider = null
> at org.apache.flume.channel.file.Log.<init>(Log.java:249)
> at org.apache.flume.channel.file.Log.<init>(Log.java:66)
> at org.apache.flume.channel.file.Log$Builder.build(Log.java:189)
> at org.apache.flume.channel.file.FileChannel.start(FileChannel.java:271)
> at
> org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:236)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> ... 1 more
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira