Skip to content

Commit

Permalink
FindBugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushtkn committed Aug 28, 2024
1 parent 1790462 commit fa43d37
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -937,13 +937,13 @@ public void handle(DAGAppMasterEvent event) {
protected class DAGAppMasterShutdownHandler {
private AtomicBoolean shutdownHandled = new AtomicBoolean(false);
private long sleepTimeBeforeExit = TezConstants.TEZ_DAG_SLEEP_TIME_BEFORE_EXIT;
private Date shutdownTime;
private long shutdownTime;

public Date getShutdownTime() {
return shutdownTime;
return new Date(shutdownTime);
}

public void setShutdownTime(Date shutdownTime) {
public void setShutdownTime(long shutdownTime) {
this.shutdownTime = shutdownTime;
}

Expand All @@ -964,7 +964,7 @@ public void shutdown(boolean now) {

synchronized (shutdownHandlerRunning) {
shutdownHandlerRunning.set(true);
setShutdownTime(new Date(System.currentTimeMillis()));
setShutdownTime(System.currentTimeMillis());
}
LOG.info("Handling DAGAppMaster shutdown");

Expand Down

0 comments on commit fa43d37

Please sign in to comment.