Calle Wilund
9ba84e458a
Commitlog: Handle partial writes in segment::cycle
...
* Fixes #247
* Re-introduce test_allocation_failure, but allow for the "failure" to not
happen. I.e. if run with low memory settings, the test will check that
allocation failure is graceful. With lots of memory it will check partial
write.
2015-08-31 20:02:05 +03:00
Calle Wilund
e068ffb5a5
Commitlog: Make file reader provide replay_position for entries
2015-08-31 14:29:47 +02:00
Calle Wilund
4ac07fa87d
Commitlog test: remove some hardcoded assumptions on segment IDs
...
To enable changing the ID generation scheme.
2015-08-31 14:29:45 +02:00
Calle Wilund
0fcf7e3e91
Commitlog: Make "position" type 32-bit to align replay_position with
...
Origin
* Note: removed commitlog_test:test_allocation_failure because with
segments limited to 4GB -> mutation limited to 2GB, actually forcing
a fail is not guaranteed or even likely.
2015-08-31 14:29:44 +02:00
Avi Kivity
5f62f7a288
Revert "Merge "Commit log replay" from Calle"
...
Due to test breakage.
This reverts commit 43a4491043 , reversing
changes made to 5dcf1ab71a .
2015-08-27 12:39:08 +03:00
Calle Wilund
fcb87471b9
Commitlog: Make file reader provide replay_position for entries
2015-08-25 09:40:53 +02:00
Calle Wilund
366263d866
Commitlog test: remove some hardcoded assumptions on segment IDs
...
To enable changing the ID generation scheme.
2015-08-25 09:14:40 +02:00
Calle Wilund
8f0f4e7945
Commitlog: do more extensive dir entry probes to determine type
...
Since directory_entry "type" might not be set.
Ensuring that code does not remain future free or easy to read.
Fixes #157 .
2015-08-17 16:56:31 +03:00
Calle Wilund
562fa1a726
Disable allocation failure test in debug/sanitizer build
...
Since sanitizer does not fail gracefully on over-alloc
2015-08-12 20:00:44 +03:00
Calle Wilund
47b7314c78
Commitlog: add test for too large alloc
2015-08-12 16:20:12 +02:00
Avi Kivity
c720cddc5c
tests: mv tests/urchin/* -> tests/
...
Now that seastar is in a separate repository, we can use the tests/
directory.
2015-08-05 14:16:52 +03:00