YARN-1670. aggregated log writer can write more log data then it says is the log length (Mit Desai via jeagles)