Reputation: 599
I am setting up apache-ignite source code locally and facing some issue while running tests.The test ReadWriteLockMultiThreadedTest.testReadThenWriteLockAcquire seems to buggy as it keep running due to acquiring lock which is already acquired. WriteLock will conflict with readlock as its not released by the time writelock is acquired of ReentrantReadWriteLock from java.
Code for the test exist below.
public void testReadThenWriteLockAcquire() throws Exception {
ReadWriteLock lock = new ReentrantReadWriteLock();
lock.readLock().lock();
lock.writeLock().lock();
}
Can someone explain why this test is added & how it supposed to run ?
Whole test class can be viewed from. https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/jvmtest/ReadWriteLockMultiThreadedTest.java
Upvotes: 0
Views: 74
Reputation: 19313
I don't think this test is supposed to be run during normal operation. Consider always running Ignite with -DskipTests=true
.
Ignite's test running is intricate as it involves running dozens of separate test suites in parallel.
Upvotes: 2