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

On Windows, when using the spooling directory source, there is a file sharing violation when trying to delete tracker file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • Sinks+Sources
    • None

    Description

      spooling directory source
      org.apache.flume.client.avro.ReliableSpoolingFileEventReader.getNextFile()

      Gets an instance of a DurablePositionTracker and is not calling close() on it before then creating another instance... thus not calling close on the underlying DataFileWriter. This left the file locked in Windows and hence any delete attempts were failing...causing the Agent to spin around and around trying to delete this file and creating endless numbers of the temporary tracker files.

      Attachments

        1. ReliableSpoolingFileEventReader.java
          21 kB
          Phil Scala
        2. ReliableSpoolingFileEventReader.java.patch
          0.8 kB
          Phil Scala
        3. FLUME-1993.patch
          0.9 kB
          Paul Chavez

        Issue Links

          Activity

            People

              paulchavez Paul Chavez
              scaph01 Phil Scala
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: