Description
Easier way to simulate the issue:
1. Start hive cli with "--hiveconf hive.execution.mode=llap"
2. Run a sql script file (e.g sql script containing tpc-ds queries)
3. In the middle of the run, press "ctrl+C" which would interrupt the current job. This should not exit the hive cli yet.
4. After sometime, launch the same SQL script in same cli. This would get stuck indefinitely (waiting for computing the splits).
Even when cli is quit, AM runs forever until explicitly killed.
Issue seems to be around LlapTaskSchedulerService::schedulePendingTasks dealing with the loop when it encounters DELAYED_RESOURCES on task scheduling.