Exceptions during 'compute' in storage manager must be processed with exception strategy
#KT-5134 Fixed
This commit is contained in:
@@ -207,6 +207,9 @@ public class LockBasedStorageManager implements StorageManager {
|
|||||||
try {
|
try {
|
||||||
return computable.invoke();
|
return computable.invoke();
|
||||||
}
|
}
|
||||||
|
catch (Throwable throwable) {
|
||||||
|
throw exceptionHandlingStrategy.handleException(throwable);
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user