flume-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLUME-3223) Flume HDFS Sink should retry close prior to performing a recoverLease
Date Mon, 15 Oct 2018 10:43:00 GMT

    [ https://issues.apache.org/jira/browse/FLUME-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650055#comment-16650055
] 

Hudson commented on FLUME-3223:
-------------------------------

SUCCESS: Integrated in Jenkins build Flume-trunk-hbase-1 #358 (See [https://builds.apache.org/job/Flume-trunk-hbase-1/358/])
FLUME-3223 Flume HDFS Sink should retry close prior recover lease (szaboferee: [http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=327a43dbefab57dc5d2da3ca9b7bb36ae4f743b7])
* (edit) flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/TestHDFSEventSinkOnMiniCluster.java
* (edit) flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/TestBucketWriter.java
* (edit) flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/BucketWriter.java
* (edit) flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/HDFSEventSink.java
* (edit) flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/MockHDFSWriter.java


> Flume HDFS Sink should retry close prior to performing a recoverLease
> ---------------------------------------------------------------------
>
>                 Key: FLUME-3223
>                 URL: https://issues.apache.org/jira/browse/FLUME-3223
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Miklos Csanady
>            Assignee: Endre Major
>            Priority: Major
>             Fix For: 1.9.0
>
>
> Flume HDFS Sink will currently only attempt to close a file once, and if that fails,
it will move to recoverLease. This appears to be causing some issues.
> The recommendation is to modify the close behavior to retry the close a configurable
number of times with a configurable interval in between before attempting the recoverLease.
> There currently exists a {{closeTries}} and {{retryInterval}} property, however this
only retries the rename operation, not the close operation as seen in the documentation:
> {quote}The file may still remain open if the close call fails but the data will be intact
and in this case, the file will be closed only after a Flume restart.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org


Mime
View raw message