[SPARK-3101] Missing volatile annotation in ApplicationMaster