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

Remove unnecessary 'synchronized' in ResettableFileInputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.8.0
    • None
    • Sinks+Sources
    • None

    Description

      I found no concurrent access to ResettableFileInputStream object in flume code.
      Remove 'synchronized' will improve performance of SpoolDirectorySource.
      Tested with a file of 200MB,with 'synchronized' it took 9 seconds to read the file.
      Without 'synchronized' it took 7 seconds.

      Attachments

        Issue Links

          Activity

            People

              liaoguangxian guangxian.liao
              liaoguangxian guangxian.liao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: