flume-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "guangxian.liao (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLUME-3205) Remove unnecessary 'synchronized' in ResettableFileInputStream
Date Wed, 27 Dec 2017 10:13:00 GMT

     [ https://issues.apache.org/jira/browse/FLUME-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

guangxian.liao reassigned FLUME-3205:
-------------------------------------

    Assignee: guangxian.liao

> Remove unnecessary 'synchronized' in ResettableFileInputStream
> --------------------------------------------------------------
>
>                 Key: FLUME-3205
>                 URL: https://issues.apache.org/jira/browse/FLUME-3205
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: 1.8.0
>            Reporter: guangxian.liao
>            Assignee: guangxian.liao
>            Priority: Minor
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message