There are times when a user only wants to run an application with one attempt. Examples would be cases where the second AM attempt is not prepared to handle recovery or will accidentally corrupt state (e.g.: by re-executing something from scratch that should not be). Prior to
YARN-614 setting the max attempts to 1 would guarantee the app ran at most one attempt, but now it can run more than one attempt if the attempts fail due to a fault not attributed to the application.