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

When flume collected files are linked file, and the link file points to a real file, it will lead to open the file too much exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • Sinks+Sources
    • None
    • centos6.7

    Description

      When flume collected files are linked file, and the link file points to a real file, it will lead to open the file too much exception.
      The following codes in ReliableTaildirEventReader.java, will create unmanaged object which contain file handle.

       long inode = getInode(f);
              TailFile tf = tailFiles.get(inode);
              if (tf == null || !tf.getPath().equals(f.getAbsolutePath())) {
                long startPos = skipToEnd ? f.length() : 0;
                tf = openFile(f, headers, inode, startPos);
              }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pascal1982 Rui Pan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: