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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: v1.4.0
    • Fix Version/s: v1.4.0
    • Component/s: Sinks+Sources
    • Labels:
      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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Paul Chavez
              Reporter:
              Phil Scala
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development