HDFS-14822. [SBN read] Revisit GlobalStateIdContext locking when getting server state id. Contributed by Chen Liang.

This commit is contained in:
Chen Liang 2019-09-18 17:20:05 -07:00
parent 2661c32c06
commit d25b3339ed
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ class GlobalStateIdContext implements AlignmentContext {
@Override
public long getLastSeenStateId() {
return namesystem.getFSImage().getCorrectLastAppliedOrWrittenTxId();
// Should not need to call getCorrectLastAppliedOrWrittenTxId()
// see HDFS-14822.
return namesystem.getFSImage().getLastAppliedOrWrittenTxId();
}
@Override