Bugfixes
This commit is contained in:
parent
a976a4baa4
commit
c27f7d4e2b
@ -442,11 +442,13 @@ public class DatabaseMapDictionaryDeep<T, U, US extends DatabaseStage<U>> extend
|
||||
var fullRange = tuple.getT2();
|
||||
try {
|
||||
if (firstKey.isPresent()) {
|
||||
try (var key1Buf = deepMap.alloc.allocate(keySuffix1Serializer.getSerializedBinaryLength())) {
|
||||
keySuffix1Serializer.serialize(firstKey.get(), key1Buf);
|
||||
sink.next(LLRange.of(key1Buf.send(), fullRange.getMax()));
|
||||
} catch (SerializationException e) {
|
||||
sink.error(e);
|
||||
try (fullRange) {
|
||||
try (var key1Buf = deepMap.alloc.allocate(keySuffix1Serializer.getSerializedBinaryLength())) {
|
||||
keySuffix1Serializer.serialize(firstKey.get(), key1Buf);
|
||||
sink.next(LLRange.of(key1Buf.send(), fullRange.getMax()));
|
||||
} catch (SerializationException e) {
|
||||
sink.error(e);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
sink.next(fullRange);
|
||||
@ -457,7 +459,7 @@ public class DatabaseMapDictionaryDeep<T, U, US extends DatabaseStage<U>> extend
|
||||
} catch (Throwable ex2) {
|
||||
LOG.error(ex2);
|
||||
}
|
||||
throw ex;
|
||||
sink.error(ex);
|
||||
}
|
||||
}), false, false)
|
||||
.concatMapIterable(entry -> {
|
||||
|
@ -89,14 +89,23 @@ public abstract class LLLocalReactiveRocksIterator<T> {
|
||||
rocksIterator.next();
|
||||
}
|
||||
sink.next(getEntry(key, value));
|
||||
} finally {
|
||||
} catch (Throwable ex) {
|
||||
if (value != null && value.isAccessible()) {
|
||||
value.close();
|
||||
try {
|
||||
value.close();
|
||||
} catch (Throwable ex2) {
|
||||
logger.error(ex2);
|
||||
}
|
||||
}
|
||||
throw ex;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
if (key.isAccessible()) {
|
||||
key.close();
|
||||
try {
|
||||
key.close();
|
||||
} catch (Throwable ex2) {
|
||||
logger.error(ex2);
|
||||
}
|
||||
}
|
||||
throw ex;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user