Skip to content

Commit 9477885

Browse files
committed
Merge branch 'develop' into release
2 parents 8f4bb8e + 8034d99 commit 9477885

File tree

19 files changed

+78
-31
lines changed

19 files changed

+78
-31
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
steps:
106106
- uses: actions/checkout@v5
107107

108-
- uses: graalvm/[email protected].6
108+
- uses: graalvm/[email protected].7
109109
with:
110110
java-version: ${{ matrix.java }}
111111
distribution: 'graalvm-community'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

5353
- name: maven-settings-action
54-
uses: s4u/maven-settings-action@v3.1.0
54+
uses: s4u/maven-settings-action@v4.0.0
5555
with:
5656
servers: |
5757
[

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

5353
- name: maven-settings-action
54-
uses: s4u/maven-settings-action@v3.1.0
54+
uses: s4u/maven-settings-action@v4.0.0
5555
with:
5656
servers: |
5757
[

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ test.log
452452
/build
453453
!no2-old.db
454454
!no2-v3.db
455+
!no2-v4.3.0.db
455456
.diffblue
456457
infer-out
457458
secring.gpg

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Release 4.3.2 - Sep 25, 2025
2+
3+
### Issue Fixes
4+
5+
- Fix for small safety/cleanup in Nitrite interface (map lookups, closed check, name trim) #1161
6+
- Fix for updating to 4.3.1 causes existing databases to not open correctly #1162
7+
18
## Release 4.3.1 - Sep 23, 2025
29

310
### New Changes

nitrite-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-bom</artifactId>

nitrite-jackson-mapper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-jackson-mapper</artifactId>

nitrite-mvstore-adapter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-mvstore-adapter</artifactId>

nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/NitriteTest.java

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import java.io.InputStream;
5454
import java.nio.file.Files;
5555
import java.nio.file.Paths;
56+
import java.nio.file.StandardCopyOption;
5657
import java.text.ParseException;
5758
import java.text.SimpleDateFormat;
5859
import java.util.*;
@@ -622,7 +623,7 @@ public void run() {
622623
log.error("Error in thread", e);
623624
}
624625
}
625-
};
626+
}
626627

627628
Thread t0 = new Thread(new ThreadRunner());
628629
Thread t1 = new Thread(new ThreadRunner());
@@ -682,6 +683,32 @@ public void testReadOnlyMode() {
682683
deleteDb(fileName);
683684
}
684685

686+
@Test
687+
public void testIssue1162() throws IOException {
688+
689+
// setup no2-v4.3.0.db as a temp file
690+
var databasePath = Files.createTempFile("temp-no2-v4.3.0", ".db");
691+
var templateDb = Objects.requireNonNull(NitriteTest.class.getResourceAsStream("/no2-v4.3.0.db"));
692+
Files.copy(templateDb, databasePath, StandardCopyOption.REPLACE_EXISTING);
693+
694+
var module = MVStoreModule.withConfig()
695+
.filePath(databasePath.toAbsolutePath().toFile())
696+
.build();
697+
698+
var database = Nitrite.builder()
699+
.loadModule(module)
700+
.openOrCreate();
701+
702+
try (database) {
703+
var collection = database.getCollection("myCollection");
704+
assertEquals(1, collection.size());
705+
706+
var firstPerson = collection.find().firstOrNull();
707+
assertNotNull(firstPerson);
708+
assertEquals(1970829645337976832L, firstPerson.getId().getIdValue());
709+
}
710+
}
711+
685712
@Data
686713
@AllArgsConstructor
687714
@NoArgsConstructor
16 KB
Binary file not shown.

0 commit comments

Comments
 (0)