sijie commented on issue #832: Issue 620: Close the fileChannels for read when they are idle URL: https://github.com/apache/bookkeeper/pull/832#issuecomment-354071145 > there is a question, how to verify the fileChannel is closed? currently I checked the refCnt in test. A tricky solution is to attempt to write data to a file channel. If a file channel is closed, the write will be thrown with [ChannelClosedException](https://docs.oracle.com/javase/7/docs/api/java/nio/channels/ClosedChannelException.html)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
