Deegue opened a new pull request #2550:
URL: https://github.com/apache/hadoop/pull/2550


   History Server searches applications by visiting `history file`. If we move 
`history file` to `/done` before `conf file`, at the same time, stop the 
History Server, however, `conf file` is still in `/intermediate`. When we start 
History Server again, this `conf file` won't be moved to `/done` because ` the 
history file` is no longer in `/intermediate`. In this case, `conf file` is 
    trash.
   
   When we move `conf file` first, stop the History Server, however, `conf 
file` isn't exist but `history file` does. When we start History Server again, 
it'll try to move the `conf file` and throw FileNotFound exception. In this 
case, `history file` is trash.
   
   Trash(outdated `conf file` and `history file`) will pile up in 
`/intermediate` directory util we delete them manually or it'll slow down 
History Server.
   
   Our solution is changing move order and making file exist check.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to