File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1564,11 +1564,17 @@ public long getMostRecentCheckpointTxId() {
15641564 }
15651565
15661566 /**
1567+ * Given a NameNodeFile type, retrieve the latest txid for that file or
1568+ * {@link HdfsServerConstants::INVALID_TXID} if the file does not exist
1569+ *
1570+ * @param nnf The NameNodeFile type to retrieve the latest txid from.
15671571 * @return the latest txid for the NameNodeFile type, or
1568- * {@link HdfsServerConstants::INVALID_TXID}if there is no FSImage file of the
1569- * type requested.
1572+ * {@link HdfsServerConstants::INVALID_TXID} if there is no FSImage file of
1573+ * the type requested
1574+ * @throws IOException
15701575 */
1571- public long getMostRecentNameNodeFileTxId (NameNodeFile nnf ) throws IOException {
1576+ public long getMostRecentNameNodeFileTxId (NameNodeFile nnf )
1577+ throws IOException {
15721578 final FSImageStorageInspector inspector =
15731579 new FSImageTransactionalStorageInspector (EnumSet .of (nnf ));
15741580 storage .inspectStorageDirs (inspector );
You can’t perform that action at this time.
0 commit comments