storm icon indicating copy to clipboard operation
storm copied to clipboard

[STORM-3764] Fix NPE in SchedulingSearcherState.backtrack()

Open bipinprasad opened this issue 3 years ago • 0 comments

What is the purpose of the change

While backtracking in scheduling code, Ackers are skipped. However, under certain circumstances a null WorkerSlot is passed as parameter to SchedulingSearcherState.backtrack(). This null key is used to retrieve an entry from Map. The returned null map value causes NPE

How was the change tested

new unit test TestGenericResourceAwareStrategy.testScheduleLeftOverAckers()

bipinprasad avatar Apr 09 '21 11:04 bipinprasad