incomplete fix for exception handling in flushRotatedLogs method and need of ConcurrentList for rotatedLogChannels
- Dominant language
- Java
- Stars
- 2k
- Forks
- 976
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 7
Description
**BUG REPORT**
1. Please describe the issue you observed:
As part of this bug https://issues.apache.org/jira/projects/BOOKKEEPER/issues/BOOKKEEPER-1044, following fix has been made https://github.com/apache/bookkeeper/pull/286/commits/cfe8bce5bf07532f5ca165b0e65272a43a013e8a but this seems to be an incomplete fix. If there is an exception while closing fileChannel (closeFileChannel(channel)) then it is not handled with this fix.
Also it would be much simpler to use some sort of ConcurrentList for rotatedLogChannels, since it would remove the need of guard of synchronization on EntryLogger/EntryLogManager instance and it would be much simpler to implement function which access / operate on rotatedLogChannels.
Contributor guide
Assessment
This issue has not been assessed yet.