Update from version 5.6.0 to 5.6.1 contains change in this line in MongoRepository.java (
|
.map(CommitId::valueAsNumber).collect(Collectors.toSet())); |
):
.map(c -> c.valueAsNumber().doubleValue()).collect(Collectors.toSet()));
was changed to:
.map(CommitId::valueAsNumber).collect(Collectors.toSet()));
After that change when snapshot has commit id with minor version different than 0 (e.g. 372136.02) this snapshot is not fetched from repository by commit id - problem is in passing BigDecimal value to query instead of double value (with double value snapshot is returned without problems - checked by debugging on line
|
if (coreConfiguration.getCommitIdGenerator() == CommitIdGenerator.SYNCHRONIZED_SEQUENCE) { |
)
I've added screens from debug between two version to explain the problem:
VERSION 5.6.0

VERSION 5.6.1

Update from version 5.6.0 to 5.6.1 contains change in this line in MongoRepository.java (
javers/javers-persistence-mongo/src/main/java/org/javers/repository/mongo/MongoRepository.java
Line 282 in a72718a
was changed to:
After that change when snapshot has commit id with minor version different than 0 (e.g. 372136.02) this snapshot is not fetched from repository by commit id - problem is in passing BigDecimal value to query instead of double value (with double value snapshot is returned without problems - checked by debugging on line
javers/javers-persistence-mongo/src/main/java/org/javers/repository/mongo/MongoRepository.java
Line 256 in a72718a
I've added screens from debug between two version to explain the problem:
VERSION 5.6.0
VERSION 5.6.1