IndexCache failures due to missing synchronization
Single computation node
1. MR client submit a job (feature start)
No (multi-thread, lock contention)
1 (1 NM)
TestMRJobs.testSleepJob throws an IllegalMonitorStateException that the wait method does not hold the process lock.
As the code is not wrapped into a “synchronized” block, when the thread visit the code with wait() method in it without the process lock, it will throw the exception.
The threading calling “wait” method may not holding the lock to the object due to the loss of “synchronized” keyword.
Warpping the code into a synchronized block.
No more exceptions