HDFS-14822. [SBN read] Revisit GlobalStateIdContext locking when getting server state id. Contributed by Chen Liang.
This commit is contained in:
parent
f16eb093f7
commit
4ed0aefe9f
@ -165,7 +165,9 @@ public long receiveRequestState(RpcRequestHeaderProto header,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getLastSeenStateId() {
|
public long getLastSeenStateId() {
|
||||||
return namesystem.getFSImage().getCorrectLastAppliedOrWrittenTxId();
|
// Should not need to call getCorrectLastAppliedOrWrittenTxId()
|
||||||
|
// see HDFS-14822.
|
||||||
|
return namesystem.getFSImage().getLastAppliedOrWrittenTxId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user