Skip to content

Commit

Permalink
HDFS-14822. [SBN read] Revisit GlobalStateIdContext locking when gett…
Browse files Browse the repository at this point in the history
…ing server state id. Contributed by Chen Liang.
  • Loading branch information
Chen Liang committed Sep 18, 2019
1 parent f16eb09 commit 4ed0aef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public long receiveRequestState(RpcRequestHeaderProto header,

@Override
public long getLastSeenStateId() {
return namesystem.getFSImage().getCorrectLastAppliedOrWrittenTxId();
// Should not need to call getCorrectLastAppliedOrWrittenTxId()
// see HDFS-14822.
return namesystem.getFSImage().getLastAppliedOrWrittenTxId();
}

@Override
Expand Down

0 comments on commit 4ed0aef

Please sign in to comment.