Review Board 1.7.22


HDFS-2334: Add Closeable to JournalManager

Review Request #2247 - Created Oct. 6, 2011 and submitted

Ivan Kelly
trunk
HDFS-2334
Reviewers
hadoop-hdfs
hadoop-common-git
A JournalManager may take hold of resources for the duration of their lifetime. This isn't the case at the moment for FileJournalManager, but BookKeeperJournalManager will, and it's conceivable that FileJournalManager could take a lock on a directory etc.

This JIRA is to add Closeable to JournalManager so that these resources can be cleaned up when FSEditLog is closed.

 
Review request changed
Updated (Oct. 24, 2011, 9:18 a.m.)
Added check for null on JournalAndStream#close