Skip to content

Commit

Permalink
HDFS-17099. Fix Null Pointer Exception when stop namesystem in HDFS.(#…
Browse files Browse the repository at this point in the history
…6034). Contributed by ConfX.

Signed-off-by: Ayush Saxena <[email protected]>
Signed-off-by: He Xiaoqiao <[email protected]>
  • Loading branch information
teamconfx authored May 14, 2024
1 parent 4cb4d5d commit 8d9d58d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1531,10 +1531,10 @@ void stopActiveServices() {
if (dir != null && getFSImage() != null) {
if (getFSImage().editLog != null) {
getFSImage().editLog.close();
// Update the fsimage with the last txid that we wrote
// so that the tailer starts from the right spot.
getFSImage().updateLastAppliedTxIdFromWritten();
}
// Update the fsimage with the last txid that we wrote
// so that the tailer starts from the right spot.
getFSImage().updateLastAppliedTxIdFromWritten();
}
if (dir != null) {
dir.ezManager.stopReencryptThread();
Expand Down

0 comments on commit 8d9d58d

Please sign in to comment.