Description
- FSEditLog.logSync() first waits until isSyncRunning is false and then performs syncing to file streams by calling EditLogOutputStream.flush().
If an exception is thrown after isSyncRunning is set to true all threads will always wait on this condition.
An IOException may be thrown by EditLogOutputStream.setReadyToFlush() or a RuntimeException may be thrown by EditLogOutputStream.flush() or by processIOError(). - The loop that calls eStream.flush() for multiple EditLogOutputStream-s is not synchronized, which means that another thread may encounter an error and modify editStreams by say calling processIOError(). Then the iterating process in logSync() will break with IndexOutOfBoundException.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-4045 Increment checkpoint if we see failures in rollEdits
- Closed
- relates to
-
HDFS-192 TestBackupNode sometimes fails
- Closed