Tests for storage manager

This commit is contained in:
Andrey Breslav
2013-10-02 17:11:30 +04:00
parent 0591ceb7f0
commit aa90302d1b
2 changed files with 460 additions and 1 deletions
@@ -206,7 +206,10 @@ public class LockBasedStorageManager implements StorageManager {
return typedValue;
}
catch (Throwable throwable) {
value = WrappedValues.escapeThrowable(throwable);
if (value == NotValue.COMPUTING) {
// Store only if it's a genuine result, not something thrown through recursionDetected()
value = WrappedValues.escapeThrowable(throwable);
}
throw ExceptionUtils.rethrow(throwable);
}
}