nedb-engine-client 3.0.0 → 3.2.0
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/README.md +14 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,11 +11,20 @@ Connect to any running `nedbd` instance from Node.js or the browser. No engine e
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
## ⚠️ Upgrade your server to nedbd 2.
|
|
14
|
+
## ⚠️ Upgrade your server to nedbd 3.2.0
|
|
15
15
|
|
|
16
|
-
This client talks to `nedbd`, so its durability comes from the server. **
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
This client talks to `nedbd`, so its durability comes from the server. **Upgrade if you are on
|
|
17
|
+
anything earlier than 3.2.0.**
|
|
18
|
+
|
|
19
|
+
**3.2.0 — the embedded engine was pinning its own data directory.** The background flush ticker held
|
|
20
|
+
a strong reference to the database in a loop that never exited, so the handle was never dropped: the
|
|
21
|
+
exclusive data-dir `LOCK` was never released, reopening the same path in the same process failed with
|
|
22
|
+
"locked by another process" naming your *own* pid, and every open leaked a thread and the whole
|
|
23
|
+
database for the life of the process. Live in **2.8.5 through 3.1.0**.
|
|
24
|
+
|
|
25
|
+
**2.8.6 fixed three defects in 2.8.5 and earlier** — a flush that hit a full disk silently discarded
|
|
26
|
+
acknowledged writes, flush failures were unobservable, and `nedb-cli repair` could not actually
|
|
27
|
+
rebuild a damaged id index.
|
|
19
28
|
|
|
20
29
|
If a database ever returned rows and now returns none while `/verify` reports every object healthy,
|
|
21
30
|
that is the lost-id-index symptom and it is recoverable:
|
|
@@ -86,7 +95,7 @@ NEDBD_DAG=1 NEDBD_CAST=1 nedbd --data ./data
|
|
|
86
95
|
|
|
87
96
|
# Check health
|
|
88
97
|
curl http://127.0.0.1:7070/health
|
|
89
|
-
# {"ok":true,"version":"2.
|
|
98
|
+
# {"ok":true,"version":"3.2.0","service":"nedbd","encrypted":true}
|
|
90
99
|
```
|
|
91
100
|
|
|
92
101
|
---
|