use of org.apache.hudi.client.transaction.lock.InProcessLockProvider in project hudi by apache.
the class TestInProcessLockProvider method testLockReleaseByClose.
@Test
public void testLockReleaseByClose() {
InProcessLockProvider inProcessLockProvider = new InProcessLockProvider(lockConfiguration, hadoopConfiguration);
assertDoesNotThrow(() -> {
inProcessLockProvider.lock();
});
assertDoesNotThrow(() -> {
inProcessLockProvider.close();
});
}
Aggregations