Description
MetadataGetTableReadLockIT.
testBlockedReadDoesNotBlockAnotherRead creates 2 threads. First thread takes a read lock while performing a query and sleeps for a duration. Second thread also performs a query. The test verifies that the second thread was not blocked i.e. it finishes quicker than the first thread's sleep duration. The test setup removes MetaDataEndpointImpl coproc and loads an extension of it which can be configured to sleep after acquiring a lock.
Currently, the test class is annotated with ParallelStatsDisabledTest which means other tests can interfere with the coproc loaded on SYSTEM.CATALOG. We can annotate it with
NeedsOwnMiniClusterTest.