Skip to content

Commit ed0d884

Browse files
author
Danny Becker
committed
Add ipc() wrapper
1 parent d7f6943 commit ed0d884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/NamenodeProtocolTranslatorPB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ public long getMostRecentCheckpointTxId() throws IOException {
138138

139139
@Override
140140
public long getMostRecentNameNodeFileTxId(NNStorage.NameNodeFile nnf) throws IOException {
141-
return rpcProxy.getMostRecentNameNodeFileTxId(NULL_CONTROLLER,
141+
return ipc(() -> rpcProxy.getMostRecentNameNodeFileTxId(NULL_CONTROLLER,
142142
GetMostRecentNameNodeFileTxIdRequestProto.newBuilder()
143-
.setNameNodeFile(nnf.toString()).build()).getTxId();
143+
.setNameNodeFile(nnf.toString()).build()).getTxId());
144144

145145
}
146146

0 commit comments

Comments
 (0)