Description
For example:when user input wrong username or queue,and submit a batch session。it will throw error in spark-submit process, but batch session state won't change because batch session state change depends on SparkApp state change. So this session will become dead until livy.server.yarn.app-leakage.check-timeout overdued, in my env,it's 600s. I think in this case should have a quick failure.