@kedem/okdb 3.1.8 → 3.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to `@kedem/okdb` are documented here. Format loosely follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [SemVer](https://semver.org/).
|
|
5
5
|
Dates are release dates.
|
|
6
6
|
|
|
7
|
+
## [3.1.9] - 2026-11-06
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **A second process no longer takes over a view build that `views.create()` / `rebuild()` is running.** 3.1.7–3.1.8 ran an explicit
|
|
12
|
+
build without the cross-process `view-rebuild:<name>` lease the view boot takes: a peer processing node that booted (at open, on
|
|
13
|
+
a `~views` poke, or reopening the env after a compaction) while the build ran found the view unbuilt, got the lease uncontested
|
|
14
|
+
and resumed the build, and the creator's `create()` rejected `VIEW_BOOTSTRAP_CANCELLED` ("build taken over by another builder").
|
|
15
|
+
store-oasis then dropped its views and retried, and two workers restarted the `commerce` view from zero after every compaction.
|
|
16
|
+
Every builder now holds the lease (taken before the `~views` row is written, so a poked peer defers); `create()` / `rebuild()` /
|
|
17
|
+
`start()` / `resetView()` retry for ~2 s when a peer holds it (`VIEW_REBUILD_IN_PROGRESS`, e.g. a view removed and re-created
|
|
18
|
+
while its build was still stopping), and an index-ready rebuild or a queued reset that meets it is retried, not dropped. A build
|
|
19
|
+
a peer does take over (our lease lapsed in a >10 min loop stall) carries `details.reason: 'taken-over'`: `create()` then waits
|
|
20
|
+
for the peer to finish the view instead of failing, and takes the build back if that peer dies.
|
|
21
|
+
|
|
7
22
|
## [3.1.8] - 2026-11-05
|
|
8
23
|
|
|
9
24
|
### Fixed
|
|
Binary file
|