[
https://issues.apache.org/jira/browse/FLUME-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brock Noland updated FLUME-1599:
--------------------------------
Description:
1) Error message is bad.
{noformat}
java.io.IOException: Failed to obtain lock for writing to the log. Try
increasing the log write timeout value or disabling it by setting it to 0.
[channel=fileChannel]
{noformat}
Setting that timeout to 0 actually disables the wait.
2) The comment below is stale. The direct memory stuff should be removed.
/**
* Maximum capacity of the channel. This number needs to be configured
* in line with -XX:MaxDirectMemorySize. {@link FileChannel}
* Default: 1,000,000 which will consume 8MB of direct memory
*/
3) The FileChannel javadoc message is wrong as well referencing DirectMemory
stuff.
was:
{noformat}
java.io.IOException: Failed to obtain lock for writing to the log. Try
increasing the log write timeout value or disabling it by setting it to 0.
[channel=fileChannel]
{noformat}
Setting that timeout to 0 actually disables the wait.
> FileChannel error message and documentation is stale
> ----------------------------------------------------
>
> Key: FLUME-1599
> URL: https://issues.apache.org/jira/browse/FLUME-1599
> Project: Flume
> Issue Type: Improvement
> Components: Channel
> Affects Versions: v1.2.0, v1.3.0
> Reporter: Brock Noland
> Assignee: Brock Noland
> Attachments: FLUME-1599-0.patch
>
>
> 1) Error message is bad.
> {noformat}
> java.io.IOException: Failed to obtain lock for writing to the log. Try
> increasing the log write timeout value or disabling it by setting it to 0.
> [channel=fileChannel]
> {noformat}
> Setting that timeout to 0 actually disables the wait.
> 2) The comment below is stale. The direct memory stuff should be removed.
> /**
> * Maximum capacity of the channel. This number needs to be configured
> * in line with -XX:MaxDirectMemorySize. {@link FileChannel}
> * Default: 1,000,000 which will consume 8MB of direct memory
> */
> 3) The FileChannel javadoc message is wrong as well referencing DirectMemory
> stuff.
--
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