Commit graph

1250 commits

Author SHA1 Message Date
Martin Sumner
65de71a2b5
Merge pull request #147 from martinsumner/mas-i146-startupoptions
Mas i146 startupoptions
2018-06-21 10:45:17 +01:00
Martin Sumner
8a61e5af78 Add extra checks 2018-06-08 14:12:07 +01:00
Martin Sumner
d60725ad1b Add schema document 2018-06-08 13:23:45 +01:00
Martin Sumner
022997b2e6 Coverage issue
The scan_table situation where the query needs to be start inclusive, was consistently getting coverage.  It was less likely to get coverage with smaller cache sizes.

It is not clear why this wasn't being triggered before.  Perhaps because of the erroneous jitter setting?

Multiple cache sizes now tested to try and make sure the test is always  in-line with expectations.
2018-06-08 12:34:10 +01:00
Martin Sumner
589d947c01 Jitter proportionate to size
Not not default size
2018-06-07 18:08:54 +01:00
Martin Sumner
95aa1c632b Comment change 2018-06-07 16:56:10 +01:00
Martin Sumner
7eb26078e0 Add xref check support
Now xref chekcing as part of verification process.
2018-06-07 15:02:39 +01:00
Martin Sumner
7c1f34c94f Format
Reverse mysterious tab displacement
2018-06-07 14:55:05 +01:00
Martin Sumner
319c6b4ca7 Undefined typo
Interetsingly setting  max_pencillercachesize to a non-integer merely had the impact of making the penciller cache size infinite.

So a guard added to make sure it is an integer going forward.
2018-06-07 14:53:34 +01:00
Martin Sumner
11d72013d2 Add open_options type
Make it easier to discover all the options and the defaults from reaidng the code.

Note default sync option is now none.  This doesn't mean this is recommended
2018-06-07 12:40:12 +01:00
Martin Sumner
4dcfa6ccae
Merge pull request #145 from martinsumner/mas-i144-gcmanifest
Mas i144 gcmanifest
2018-06-05 18:43:18 +01:00
Martin Sumner
fc998d2971 GC Inker Manifest 2018-06-05 16:57:54 +01:00
Martin Sumner
93f16a6297 Unit test - GC
End up with right number of manifest files
2018-06-05 16:48:56 +01:00
Martin Sumner
a72d1cc941 Validate current manifest was written
Then delete a previous maniafest (from 5 manifests ago, if it is still there).
2018-06-05 15:36:39 +01:00
Martin Sumner
b55cbc48ea
Merge pull request #143 from martinsumner/mas-i61-missingtypes
Fix unexported types
2018-06-04 12:41:51 +01:00
Martin Sumner
a14941a122 Fix unexported types
file:location not exported?
2018-06-04 10:57:37 +01:00
Martin Sumner
c827c60042
Merge pull request #142 from martinsumner/mas-i14-undefinedoldobjects
Mas i14 undefinedoldobjects
2018-05-24 22:56:43 +01:00
Martin Sumner
9f9da77398 Allow add_kv to output segment
Make it easier to spot clashes with dirty segments in kv_index_tictactree
2018-05-24 20:03:53 +01:00
Martin Sumner
ca2b857e36 Add replace segment function
This will be useful in kv_index_tictactree to do partial rebuilds after fetch_clock requests
2018-05-24 16:12:12 +01:00
Martin Sumner
95fe5fcca1
Merge pull request #141 from martinsumner/mas-i61-tictacexporttype
Export types from leveled_tictac
2018-05-19 11:29:32 +01:00
Martin Sumner
274b1f5c6d Export types from leveled_tictac 2018-05-19 11:09:03 +01:00
Martin Sumner
8fe421fed6
Merge pull request #140 from martinsumner/mas-i31-cdccrckey
Mas i31 cdccrckey
2018-05-18 15:51:17 +01:00
Martin Sumner
afa9ddecd2 Merge branch 'mas-i31-cdccrckey' of https://github.com/martinsumner/leveled into mas-i31-cdccrckey 2018-05-18 15:48:39 +01:00
Martin Sumner
b8a642fd35 Spec update 2018-05-18 15:48:36 +01:00
Martin Sumner
8011a9cde1 Unit test should not pass with bad key
Unit test needed to capture a bad key scenario, which did not get returned false.  However, bad keys are now CRC checked and so willalways return false - and so the case clause for bad key can be dropped.
2018-05-18 15:23:43 +01:00
Martin Sumner
039b135f5f Ease timeout pressure in unit test 2018-05-18 14:36:47 +01:00
Martin Sumner
5e95e6a6b3 correct incorrect return value
required by leveled_codec:compact_inkerkvc/2
2018-05-18 13:44:51 +01:00
Martin Sumner
d468dd32a8 More consistency in extract value functions
Try to make this a little bit cleaner and more obvious.  Make sure the value passed is always a value and not a crc/value.
2018-05-18 13:29:19 +01:00
Martin Sumner
7cc5512a0a safe_read
There are now two cases of safe_read_next_key/2

the first case using the original function name will return just the Key when positive (not the Key and KeyBinary).  If the Key and KeyBinary is required (e.g. for CRC checking purposes), then use safe_read_next_keyint/2.
2018-05-18 11:49:19 +01:00
Martin Sumner
d56ff6efbc Make CRC check cover key and value
So that a corrupted key is detected through a CRC check without crashing leveled (e.g. because it binary_to_term/1 failes somewhere or it is a tuple of the wrong length).

Previously the CRC covered the value only.

Note if you only wish to extract the value, the key cannot be independently validated.  Perhaps a process extrating key only could hit issues.
2018-05-18 11:17:04 +01:00
Martin Sumner
501b7806e9
Merge pull request #139 from martinsumner/mas-i138-useblockindexonfetchrange
Mas i138 useblockindexonfetchrange
2018-05-17 19:32:31 +01:00
Martin Sumner
eb5d9596b2 Add comments to test
Also loads some more objects to potentially make results clearer
2018-05-17 18:20:16 +01:00
Martin Sumner
989f23bca6 Add cache population for non-yielding range fetches
More likely to require caching at lower levels.
2018-05-17 16:38:52 +01:00
Martin Sumner
779ccd9c2a Add use of block index when not cached (for fetch range) 2018-05-17 14:56:15 +01:00
Martin Sumner
d8dd952cba
Merge pull request #137 from martinsumner/mas-i11-backenddelete
Mas i11 backenddelete
2018-05-16 19:26:05 +01:00
Martin Sumner
18aabb49ba Segment filter and multiple keys in slot
An issue was spotted.  If we use a segment filter in a query, and there are multiple matches within a given slot - only the first match is returned.

Tests didn't detect this.  Now they do, and the issue is resolved.
2018-05-16 17:24:23 +01:00
Martin Sumner
cbf6e26fc8 Revert "Accumulate keys in check_blocks"
This reverts commit 5414e18047.
2018-05-16 15:11:18 +01:00
Martin Sumner
9cc27469c1 Add test to invoke segment filter issue
there is an issue if you have a segment filter, and there is more than one match in the slot.
2018-05-16 15:11:08 +01:00
Martin Sumner
5414e18047 Accumulate keys in check_blocks
Previously couldn't accumulate keys using check-blocks - so if a key was found in the first position, and there were other positions to check for other keys, those other positions wouldn't be checked.
2018-05-16 11:38:26 +01:00
Martin Sumner
2cc088fc64 More debug 2018-05-16 11:24:57 +01:00
Martin Sumner
a7cda7213f Debug logs 2018-05-16 11:06:51 +01:00
Martin Sumner
8b4adcccaf Debug logs 2018-05-16 10:51:59 +01:00
Martin Sumner
06fd9856b5 Add debug log 2018-05-16 10:34:47 +01:00
Martin Sumner
3d1c085af3 Revert log additions 2018-05-15 10:41:56 +01:00
Martin Sumner
15a5db5055 Sort tuned seg list 2018-05-15 10:36:07 +01:00
Martin Sumner
6160db3377 Further log 2018-05-15 10:30:09 +01:00
Martin Sumner
1e40648c83 Add initial log 2018-05-15 10:11:37 +01:00
Martin Sumner
83d5a2c7a3
Merge pull request #136 from martinsumner/mas-i134-compileflag
Mas i134 compileflag
2018-05-04 18:42:12 +01:00
Martin Sumner
eb5950a179 Merge branch 'master' into mas-i134-compileflag 2018-05-04 17:14:21 +01:00
Martin Sumner
96cee2a64c Add specific compile flag to avoid deprecation warning
Will see us through OTP 20 and 21.
2018-05-04 17:14:12 +01:00