Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3223

Flume HDFS Sink should retry close prior to performing a recoverLease

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • None

    Description

      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:

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emajor Endre Major
            mcsanady Miklos Csanady
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment