GitHub user majorendre opened a pull request:
https://github.com/apache/flume/pull/226
FLUME-2973 BucketWriter deadlock fix
This PR is based on Yan Jian's fix and his test improvements. Also contains
the deadlock reproduction contributed by @adenes.
I have made minimal changes to those contributions.
Denes's test was used for checking the fix.
Yan's fix contains an optimization as it first calls the callback function
that removes the BucketWriter from the cache. This is useful, should help to
avoid some errors.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/majorendre/flume FLUME-2973
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flume/pull/226.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #226
----
----
---