Class FileJournalManager.EditLogFile
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FileJournalManager.EditLogFile
- Enclosing class:
- FileJournalManager
Record of an edit log that has been located and had its filename parsed.
-
Method Details
-
getFirstTxId
public long getFirstTxId() -
getLastTxId
public long getLastTxId() -
scanLog
Find out where the edit log ends. This will update the lastTxId of the EditLogFile or mark it as corrupt if it is.- Parameters:
maxTxIdToScan- Maximum Tx ID to try to scan. The scan returns after reading this or a higher ID. The file portion beyond this ID is potentially being updated.verifyVersion- Whether the scan should verify the layout version- Throws:
IOException
-
isInProgress
public boolean isInProgress() -
getFile
-
moveAsideEmptyFile
- Throws:
IOException
-
moveAsideStaleInprogressFile
- Throws:
IOException
-
toString
-