@nxtedition/rocksdb 10.0.19 → 10.1.1

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.
Files changed (51) hide show
  1. package/.tap/test-results/node_modules/abstract-level/test/get-test.js.tap +0 -0
  2. package/.tap/test-results/test/abstract-level-test.js.tap +1077 -0
  3. package/.tap/test-results/test/batch-test.js.tap +12 -0
  4. package/.tap/test-results/test/chained-batch-gc-test.js.tap +11 -0
  5. package/.tap/test-results/test/cleanup-hanging-iterators-test.js.tap +135 -0
  6. package/.tap/test-results/test/clear-gc-test.js.tap +13 -0
  7. package/.tap/test-results/test/column-test.js.tap +55 -0
  8. package/.tap/test-results/test/common.js.tap +0 -0
  9. package/.tap/test-results/test/compression-test.js.tap +30 -0
  10. package/.tap/test-results/test/db-identity.js.tap +12 -0
  11. package/.tap/test-results/test/electron.js.tap +0 -0
  12. package/.tap/test-results/test/env-cleanup-hook-test.js.tap +40 -0
  13. package/.tap/test-results/test/env-cleanup-hook.js.tap +0 -0
  14. package/.tap/test-results/test/gc.js.tap +0 -0
  15. package/.tap/test-results/test/getproperty-test.js.tap +29 -0
  16. package/.tap/test-results/test/iterator-gc-test.js.tap +15 -0
  17. package/.tap/test-results/test/iterator-hwm-test.js.tap +131 -0
  18. package/.tap/test-results/test/iterator-recursion-test.js.tap +12 -0
  19. package/.tap/test-results/test/iterator-starvation-test.js.tap +73 -0
  20. package/.tap/test-results/test/iterator-test.js.tap +6 -0
  21. package/.tap/test-results/test/leak-tester-batch.js.tap +0 -0
  22. package/.tap/test-results/test/leak-tester-iterator.js.tap +0 -0
  23. package/.tap/test-results/test/leak-tester.js.tap +0 -0
  24. package/.tap/test-results/test/lock-test.js.tap +18 -0
  25. package/.tap/test-results/test/lock.js.tap +0 -0
  26. package/.tap/test-results/test/make.js.tap +0 -0
  27. package/.tap/test-results/test/max-rev-merge.js.tap +0 -0
  28. package/.tap/test-results/test/merge-operator-test.js.tap +12 -0
  29. package/.tap/test-results/test/mkdir-test.js.tap +15 -0
  30. package/.tap/test-results/test/segfault-test.js.tap +76 -0
  31. package/.tap/test-results/test/stack-blower.js.tap +0 -0
  32. package/benchmarks/rocks-vs-map.mjs +68 -0
  33. package/binding.cc +111 -67
  34. package/deps/rocksdb/rocksdb/README.md +29 -0
  35. package/deps/rocksdb/rocksdb/microbench/README.md +60 -0
  36. package/deps/rocksdb/rocksdb/plugin/README.md +43 -0
  37. package/deps/rocksdb/rocksdb/port/README +10 -0
  38. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/README +13 -0
  39. package/index.js +4 -0
  40. package/package.json +3 -1
  41. package/prebuilds/darwin-arm64/@nxtedition+rocksdb.node +0 -0
  42. package/prebuilds/linux-x64/@nxtedition+rocksdb.node +0 -0
  43. package/tmp/000099.sst +0 -0
  44. package/tmp/000102.sst +0 -0
  45. package/tmp/000103.log +0 -0
  46. package/tmp/CURRENT +1 -0
  47. package/tmp/IDENTITY +1 -0
  48. package/tmp/LOCK +0 -0
  49. package/tmp/MANIFEST-000104 +0 -0
  50. package/tmp/OPTIONS-000098 +207 -0
  51. package/tmp/OPTIONS-000106 +207 -0
@@ -0,0 +1,12 @@
1
+ TAP version 13
2
+ # setUp db
3
+ # test batch iterate
4
+ ok 1 should be deeply equivalent
5
+ # tearDown
6
+
7
+ 1..1
8
+ # tests 1
9
+ # pass 1
10
+
11
+ # ok
12
+
@@ -0,0 +1,11 @@
1
+ TAP version 13
2
+ # chained batch without ref does not get GCed before write
3
+ ok 1 no open error
4
+ ok 2 no error from write()
5
+
6
+ 1..2
7
+ # tests 2
8
+ # pass 2
9
+
10
+ # ok
11
+
@@ -0,0 +1,135 @@
1
+ TAP version 13
2
+ # test closed iterator
3
+ ok 1 no error from open()
4
+ ok 2 no error from batch()
5
+ ok 3 no error from next()
6
+ not ok 4 correct key
7
+ ---
8
+ operator: equal
9
+ expected: 'one'
10
+ actual: undefined
11
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:12:7)
12
+ stack: |-
13
+ Error: correct key
14
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
15
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
16
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:12:7
17
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
18
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
19
+ ...
20
+ not ok 5 correct value
21
+ ---
22
+ operator: equal
23
+ expected: '1'
24
+ actual: undefined
25
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:13:7)
26
+ stack: |-
27
+ Error: correct value
28
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
29
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
30
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:13:7
31
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
32
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
33
+ ...
34
+ ok 6 no error from close()
35
+ ok 7 no error from done()
36
+ ok 8 no error from close()
37
+ # test likely-closed iterator
38
+ ok 9 no error from open()
39
+ ok 10 no error from batch()
40
+ ok 11 no error from next()
41
+ not ok 12 correct key
42
+ ---
43
+ operator: equal
44
+ expected: 'one'
45
+ actual: undefined
46
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:28:7)
47
+ stack: |-
48
+ Error: correct key
49
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
50
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
51
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:28:7
52
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
53
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
54
+ ...
55
+ not ok 13 correct value
56
+ ---
57
+ operator: equal
58
+ expected: '1'
59
+ actual: undefined
60
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:29:7)
61
+ stack: |-
62
+ Error: correct value
63
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
64
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
65
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:29:7
66
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
67
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
68
+ ...
69
+ ok 14 no error from done()
70
+ ok 15 no error from close()
71
+ # test non-closed iterator
72
+ ok 16 no error from open()
73
+ ok 17 no error from batch()
74
+ ok 18 no error from next()
75
+ not ok 19 correct key
76
+ ---
77
+ operator: equal
78
+ expected: 'one'
79
+ actual: undefined
80
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:42:7)
81
+ stack: |-
82
+ Error: correct key
83
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
84
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
85
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:42:7
86
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
87
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
88
+ ...
89
+ not ok 20 correct value
90
+ ---
91
+ operator: equal
92
+ expected: '1'
93
+ actual: undefined
94
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:43:7)
95
+ stack: |-
96
+ Error: correct value
97
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
98
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
99
+ at /Users/robertnagy/GitHub/rocks-level/test/cleanup-hanging-iterators-test.js:43:7
100
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
101
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
102
+ ...
103
+ ok 21 no error from done()
104
+ ok 22 no error from close()
105
+ # test multiple likely-closed iterators
106
+ ok 23 no error from open()
107
+ ok 24 no error from batch()
108
+ ok 25 no error from done()
109
+ ok 26 no error from close()
110
+ # test multiple non-closed iterators
111
+ ok 27 no error from open()
112
+ ok 28 no error from batch()
113
+ ok 29 no error from done()
114
+ ok 30 no error from close()
115
+ # test closing iterators
116
+ ok 31 no error from open()
117
+ ok 32 no error from batch()
118
+ ok 33 no error from done()
119
+ ok 34 no error from close()
120
+ # test recursive next
121
+ ok 35 no error from open()
122
+ ok 36 no error from batch()
123
+ ok 37 no error from done()
124
+ ok 38 no error from close()
125
+ # test recursive next (random)
126
+ ok 39 no error from open()
127
+ ok 40 no error from batch()
128
+ ok 41 no error from done()
129
+ ok 42 no error from close()
130
+
131
+ 1..42
132
+ # tests 42
133
+ # pass 36
134
+ # fail 6
135
+
@@ -0,0 +1,13 @@
1
+ TAP version 13
2
+ # db without ref does not get GCed while clear() is in progress
3
+ ok 1 no open error
4
+ ok 2 no batch error
5
+ ok 3 got callback
6
+ ok 4 (unnamed assert)
7
+
8
+ 1..4
9
+ # tests 4
10
+ # pass 4
11
+
12
+ # ok
13
+
@@ -0,0 +1,55 @@
1
+ TAP version 13
2
+ # test chained-batch
3
+ ok 1 should be truthy
4
+ ok 2 should be strictly equal
5
+ ok 3 should be strictly equal
6
+ ok 4 should be strictly equal
7
+ ok 5 should be strictly equal
8
+ ok 6 should be deeply equivalent
9
+ ok 7 should be deeply equivalent
10
+ ok 8 should be deeply equivalent
11
+ ok 9 should be deeply equivalent
12
+ # test batch
13
+ ok 10 should be truthy
14
+ ok 11 should be strictly equal
15
+ ok 12 should be strictly equal
16
+ ok 13 should be strictly equal
17
+ ok 14 should be strictly equal
18
+ ok 15 should be deeply equivalent
19
+ ok 16 should be deeply equivalent
20
+ ok 17 should be deeply equivalent
21
+ ok 18 should be deeply equivalent
22
+ # test chained-batch 2
23
+ ok 19 should be truthy
24
+ ok 20 should be truthy
25
+ ok 21 should be truthy
26
+ ok 22 should be truthy
27
+ ok 23 should be truthy
28
+ ok 24 should be deeply equivalent
29
+ ok 25 should be strictly equal
30
+ ok 26 should be strictly equal
31
+ ok 27 should be strictly equal
32
+ ok 28 should be strictly equal
33
+ ok 29 should be deeply equivalent
34
+ ok 30 should be deeply equivalent
35
+ ok 31 should be deeply equivalent
36
+ ok 32 should be deeply equivalent
37
+ ok 33 should be truthy
38
+ ok 34 should be truthy
39
+ # test batch 2
40
+ ok 35 should be truthy
41
+ ok 36 should be strictly equal
42
+ ok 37 should be strictly equal
43
+ ok 38 should be strictly equal
44
+ ok 39 should be strictly equal
45
+ ok 40 should be deeply equivalent
46
+ ok 41 should be deeply equivalent
47
+ ok 42 should be deeply equivalent
48
+ ok 43 should be deeply equivalent
49
+
50
+ 1..43
51
+ # tests 43
52
+ # pass 43
53
+
54
+ # ok
55
+
File without changes
@@ -0,0 +1,30 @@
1
+ TAP version 13
2
+ # compression
3
+ # test data is compressed by default (db.put())
4
+ ok 1 undefined
5
+ ok 2 undefined
6
+ ok 3 undefined
7
+ ok 4 undefined
8
+ ok 5 null
9
+ ok 6 on-disk size (17267) is less than data size (10240000)
10
+ # test data is not compressed with compression=false on open() (db.put())
11
+ ok 7 undefined
12
+ ok 8 undefined
13
+ ok 9 undefined
14
+ ok 10 undefined
15
+ ok 11 null
16
+ ok 12 on-disk size (10256742) is greater than data size (10240000)
17
+ # test data is compressed by default (db.batch())
18
+ ok 13 undefined
19
+ ok 14 undefined
20
+ ok 15 undefined
21
+ ok 16 undefined
22
+ ok 17 null
23
+ ok 18 on-disk size (17267) is less than data size (10240000)
24
+
25
+ 1..18
26
+ # tests 18
27
+ # pass 18
28
+
29
+ # ok
30
+
@@ -0,0 +1,12 @@
1
+ TAP version 13
2
+ # setUp db
3
+ # test identity()
4
+ ok 1 should be truthy
5
+ # tearDown
6
+
7
+ 1..1
8
+ # tests 1
9
+ # pass 1
10
+
11
+ # ok
12
+
File without changes
@@ -0,0 +1,40 @@
1
+ TAP version 13
2
+ # cleanup on environment exit (create)
3
+ ok 1 got to step: create
4
+ ok 2 child exited normally
5
+ ok 3 not terminated due to signal
6
+ # cleanup on environment exit (create, open)
7
+ ok 4 got to step: open
8
+ ok 5 child exited normally
9
+ ok 6 not terminated due to signal
10
+ # cleanup on environment exit (create, open, create-iterator)
11
+ ok 7 got to step: create-iterator
12
+ ok 8 child exited normally
13
+ ok 9 not terminated due to signal
14
+ # cleanup on environment exit (create, open, create-iterator, close)
15
+ ok 10 got to step: close
16
+ ok 11 child exited normally
17
+ ok 12 not terminated due to signal
18
+ # cleanup on environment exit (create, open, create-iterator, nexting)
19
+ ok 13 got to step: nexting
20
+ ok 14 child exited normally
21
+ ok 15 not terminated due to signal
22
+ # cleanup on environment exit (create, open, create-iterator, nexting, close)
23
+ ok 16 got to step: close
24
+ ok 17 child exited normally
25
+ ok 18 not terminated due to signal
26
+ # cleanup on environment exit (create, open, close)
27
+ ok 19 got to step: close
28
+ ok 20 child exited normally
29
+ ok 21 not terminated due to signal
30
+ # cleanup on environment exit (create, open-error)
31
+ ok 22 got to step: open-error
32
+ ok 23 child exited normally
33
+ ok 24 not terminated due to signal
34
+
35
+ 1..24
36
+ # tests 24
37
+ # pass 24
38
+
39
+ # ok
40
+
File without changes
File without changes
@@ -0,0 +1,29 @@
1
+ TAP version 13
2
+ # setUp db
3
+ # test argument-less getProperty() throws
4
+ ok 1 should throw
5
+ # test non-string getProperty() throws
6
+ ok 2 should throw
7
+ # test invalid getProperty() returns empty string
8
+ ok 3 invalid property
9
+ ok 4 invalid rocksdb.* property
10
+ # test invalid getProperty("rocksdb.num-files-at-levelN") returns numbers
11
+ ok 5 "rocksdb.num-files-at-levelN" === "0"
12
+ ok 6 "rocksdb.num-files-at-levelN" === "0"
13
+ ok 7 "rocksdb.num-files-at-levelN" === "0"
14
+ ok 8 "rocksdb.num-files-at-levelN" === "0"
15
+ ok 9 "rocksdb.num-files-at-levelN" === "0"
16
+ ok 10 "rocksdb.num-files-at-levelN" === "0"
17
+ ok 11 "rocksdb.num-files-at-levelN" === "0"
18
+ # test invalid getProperty("rocksdb.stats")
19
+ ok 12 rocksdb.stats has > 3 newlines
20
+ # tearDown
21
+ # getProperty() throws if db is closed
22
+ ok 13 should throw
23
+
24
+ 1..13
25
+ # tests 13
26
+ # pass 13
27
+
28
+ # ok
29
+
@@ -0,0 +1,15 @@
1
+ TAP version 13
2
+ # db without ref does not get GCed while iterating
3
+ ok 1 no open error
4
+ ok 2 no batch error
5
+ ok 3 no iterator error
6
+ ok 4 got data
7
+ ok 5 abstract iterator has reference to db
8
+ ok 6 no close error
9
+
10
+ 1..6
11
+ # tests 6
12
+ # pass 6
13
+
14
+ # ok
15
+
@@ -0,0 +1,131 @@
1
+ TAP version 13
2
+ # highWaterMarkBytes setup
3
+ # highWaterMarkBytes limits byte length of nextv() entries
4
+ not ok 1 accepts 0
5
+ ---
6
+ operator: deepEqual
7
+ expected: [ [ 'a', '0' ] ]
8
+ actual: [ [ 'a', '0' ], [ 'b', '1' ], [ 'c', '2' ], [ 'd', '3' ] ]
9
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:23:5)
10
+ stack: |-
11
+ Error: accepts 0
12
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
13
+ at Test.tapeDeepEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:748:7)
14
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:23:5)
15
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
16
+ ...
17
+ not ok 2 Infinity is interpreted as 0 (by Node-API)
18
+ ---
19
+ operator: deepEqual
20
+ expected: [ [ 'a', '0' ] ]
21
+ actual: [ [ 'a', '0' ], [ 'b', '1' ], [ 'c', '2' ], [ 'd', '3' ] ]
22
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:24:5)
23
+ stack: |-
24
+ Error: Infinity is interpreted as 0 (by Node-API)
25
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
26
+ at Test.tapeDeepEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:748:7)
27
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:24:5)
28
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
29
+ ...
30
+ not ok 3 is limited
31
+ ---
32
+ operator: deepEqual
33
+ expected: [ [ 'a', '0' ] ]
34
+ actual: [ [ 'a', '0' ], [ 'b', '1' ], [ 'c', '2' ], [ 'd', '3' ] ]
35
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:25:5)
36
+ stack: |-
37
+ Error: is limited
38
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
39
+ at Test.tapeDeepEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:748:7)
40
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:25:5)
41
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
42
+ ...
43
+ not ok 4 highWaterMarkBytes must be exceeded, not met
44
+ ---
45
+ operator: deepEqual
46
+ expected: [ [ 'a', '0' ], [ 'b', '1' ] ]
47
+ actual: [ [ 'a', '0' ], [ 'b', '1' ], [ 'c', '2' ], [ 'd', '3' ] ]
48
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:26:5)
49
+ stack: |-
50
+ Error: highWaterMarkBytes must be exceeded, not met
51
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
52
+ at Test.tapeDeepEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:748:7)
53
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:26:5)
54
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
55
+ ...
56
+ # highWaterMarkBytes limits byte length of internal next() cache
57
+ not ok 5 accepts 0
58
+ ---
59
+ operator: equal
60
+ expected: 2
61
+ actual: NaN
62
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:44:5)
63
+ stack: |-
64
+ Error: accepts 0
65
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
66
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
67
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:44:5)
68
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
69
+ ...
70
+ not ok 6 Infinity is interpreted as 0 (by Node-API)
71
+ ---
72
+ operator: equal
73
+ expected: 2
74
+ actual: NaN
75
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:45:5)
76
+ stack: |-
77
+ Error: Infinity is interpreted as 0 (by Node-API)
78
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
79
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
80
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:45:5)
81
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
82
+ ...
83
+ not ok 7 is limited
84
+ ---
85
+ operator: equal
86
+ expected: 2
87
+ actual: NaN
88
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:46:5)
89
+ stack: |-
90
+ Error: is limited
91
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
92
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
93
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:46:5)
94
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
95
+ ...
96
+ not ok 8 highWaterMarkBytes must be exceeded, not met
97
+ ---
98
+ operator: equal
99
+ expected: 4
100
+ actual: NaN
101
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:47:5)
102
+ stack: |-
103
+ Error: highWaterMarkBytes must be exceeded, not met
104
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
105
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
106
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:47:5)
107
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
108
+ ...
109
+ not ok 9 double-check that previous test did apply a limit
110
+ ---
111
+ operator: equal
112
+ expected: 6
113
+ actual: NaN
114
+ at: Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:48:5)
115
+ stack: |-
116
+ Error: double-check that previous test did apply a limit
117
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
118
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
119
+ at Test.<anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-hwm-test.js:48:5)
120
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
121
+ ...
122
+ # highWaterMarkBytes does not affect byte length of all() entries
123
+ ok 10 should be deeply equivalent
124
+ ok 11 should be deeply equivalent
125
+ # highWaterMarkBytes teardown
126
+
127
+ 1..11
128
+ # tests 11
129
+ # pass 2
130
+ # fail 9
131
+
@@ -0,0 +1,12 @@
1
+ TAP version 13
2
+ # setUp db
3
+ ok 1 undefined
4
+ # iterate over a large iterator with a large watermark
5
+ # tearDown
6
+
7
+ 1..1
8
+ # tests 1
9
+ # pass 1
10
+
11
+ # ok
12
+
@@ -0,0 +1,73 @@
1
+ TAP version 13
2
+ # iterator does not starve event loop
3
+ ok 1 no open error
4
+ ok 2 no batch error
5
+ ok 3 no next error
6
+ not ok 4 got all data
7
+ ---
8
+ operator: equal
9
+ expected: 10000
10
+ actual: 0
11
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:42:15)
12
+ stack: |-
13
+ Error: got all data
14
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
15
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
16
+ at /Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:42:15
17
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
18
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
19
+ ...
20
+ not ok 5 breathed while iterating
21
+ ---
22
+ operator: equal
23
+ expected: 10
24
+ actual: 0
25
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:43:15)
26
+ stack: |-
27
+ Error: breathed while iterating
28
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
29
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
30
+ at /Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:43:15
31
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
32
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
33
+ ...
34
+ ok 6 no close error
35
+ # iterator with seeks does not starve event loop
36
+ ok 7 no open error
37
+ ok 8 no batch error
38
+ ok 9 no next error
39
+ not ok 10 got all data
40
+ ---
41
+ operator: equal
42
+ expected: 10000
43
+ actual: 0
44
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:90:15)
45
+ stack: |-
46
+ Error: got all data
47
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
48
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
49
+ at /Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:90:15
50
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
51
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
52
+ ...
53
+ not ok 11 breathed while iterating
54
+ ---
55
+ operator: equal
56
+ expected: 9999
57
+ actual: 0
58
+ at: <anonymous> (/Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:91:15)
59
+ stack: |-
60
+ Error: breathed while iterating
61
+ at Test.assert [as _assert] (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:493:48)
62
+ at Test.strictEqual (/Users/robertnagy/GitHub/rocks-level/node_modules/tape/lib/test.js:671:7)
63
+ at /Users/robertnagy/GitHub/rocks-level/test/iterator-starvation-test.js:91:15
64
+ at [handleOne] (/Users/robertnagy/GitHub/rocks-level/node_modules/abstract-level/abstract-iterator.js:356:5)
65
+ at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
66
+ ...
67
+ ok 12 no close error
68
+
69
+ 1..12
70
+ # tests 12
71
+ # pass 8
72
+ # fail 4
73
+
@@ -0,0 +1,6 @@
1
+ TAP version 13
2
+ # iterator optimized for seek
3
+ ok 1 no error from open()
4
+ ok 2 no error from batch()
5
+ ok 3 no error from batch()
6
+ ok 4 no error from next()
File without changes
@@ -0,0 +1,18 @@
1
+ TAP version 13
2
+ # lock held by same process
3
+ ok 1 second instance failed to open
4
+ ok 2 second instance got lock error
5
+ # lock held by other process
6
+ ok 3 no open error
7
+ ok 4 second process failed to open
8
+ ok 5 second process got lock error
9
+ ok 6 child exited normally
10
+ ok 7 not terminated due to signal
11
+ ok 8 undefined
12
+
13
+ 1..8
14
+ # tests 8
15
+ # pass 8
16
+
17
+ # ok
18
+
File without changes
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ TAP version 13
2
+ # setUp db
3
+ # test merge maxRev()
4
+ ok 1 should be deeply equivalent
5
+ # tearDown
6
+
7
+ 1..1
8
+ # tests 1
9
+ # pass 1
10
+
11
+ # ok
12
+
@@ -0,0 +1,15 @@
1
+ TAP version 13
2
+ # creates location directory recursively
3
+ ok 1 should be strictly equal
4
+ ok 2 should be strictly equal
5
+ # does not create location directory recursively if createIfMissing is false
6
+ ok 3 should be strictly equal
7
+ ok 4 should be truthy
8
+ ok 5 should be strictly equal
9
+
10
+ 1..5
11
+ # tests 5
12
+ # pass 5
13
+
14
+ # ok
15
+