./gradlew build -x test -x integrationTest -x spotlessJavaCheck -x checkstyleTest
By default only modules for one Spark/Flink/Scala versions are built. To get the full build, component versions need to be enumerated.
import java.time.Duration; | |
import java.util.List; | |
import java.util.concurrent.locks.ReentrantLock; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
/** | |
* Demonstrate potential for deadlock on a {@link ReentrantLock} when there is both a synchronized and | |
* non-synchronized path to that lock, which can allow a virtual thread to hold the lock, but | |
* other pinned waiters to consume all the available workers. |