Scott Lystig Fritchie
009bad230f
WIP: change internal types for most strings -> atom to match chmgr internal use
2015-12-11 16:36:18 +09:00
Scott Lystig Fritchie
6b7d871ada
WIP: diff in progress 2
2015-12-11 16:26:13 +09:00
Scott Lystig Fritchie
1db232db1b
WIP: diff in progress
2015-12-11 15:33:31 +09:00
Scott Lystig Fritchie
3826af8ee2
WIP: dict -> gb_trees, 2 of 2
2015-12-11 13:17:33 +09:00
Scott Lystig Fritchie
df8eea8c10
WIP: dict -> gb_trees, 1 of 2
2015-12-11 12:54:54 +09:00
Scott Lystig Fritchie
61eae1300f
WIP: finish basic 'run', add negative tests
2015-12-11 12:43:38 +09:00
Scott Lystig Fritchie
3ee3de1aaf
WIP: end of day
2015-12-10 23:44:27 +09:00
Scott Lystig Fritchie
6a5c590ad1
WIP: AST change {chain,...} thingie
2015-12-10 23:05:08 +09:00
Scott Lystig Fritchie
c37f23d97a
WIP: 'Run' AST thingie ha, take that, wheel!
2015-12-10 22:53:17 +09:00
Scott Lystig Fritchie
9cec53eea6
Yet another strawman AST
2015-12-10 19:18:25 +09:00
Scott Lystig Fritchie
9472bad37b
Clean up test errors
2015-12-10 15:57:35 +09:00
Scott Lystig Fritchie
cb706f0d23
Add test/machi_lifecycle_mgr_test.erl
2015-12-10 15:20:56 +09:00
Scott Lystig Fritchie
3391c89818
Clean up verbosity of nonunanimous_setup_and_fix_test2()
2015-12-08 16:29:56 +09:00
Scott Lystig Fritchie
27e8a31307
Fix fitness timing problem with short-circuit +trigger_early_adjustment/2
2015-12-08 15:27:47 +09:00
Scott Lystig Fritchie
ef10ebed22
WIP: now trying to diagnose fitness server bug?
2015-12-08 14:50:16 +09:00
Scott Lystig Fritchie
1bc9033076
Yay, all tests pass!
2015-12-07 22:15:23 +09:00
Scott Lystig Fritchie
38e63e8181
Add & remove, mostly working (2 eunit tests broken)
2015-12-07 21:52:27 +09:00
Scott Lystig Fritchie
5aeaf872d9
WIP: machi_chain_manager1:set_chain_members() API change, all tests pass, yay
2015-12-07 14:41:56 +09:00
Scott Lystig Fritchie
cf0829b934
Add rc.d style config dir for FLU server startup
2015-12-04 16:37:05 +09:00
Scott Lystig Fritchie
e9b1134cd9
Merge pull request #48 from basho/mra/merkle-cleanup
...
Add merkle library
2015-12-02 16:25:50 +09:00
Scott Lystig Fritchie
ac10f97220
Add machi_ap_repair_eqc:sublist()
2015-12-02 15:34:27 +09:00
Mark Allen
a5a0369905
Add basic unit test
2015-11-20 21:22:41 -06:00
Mark Allen
4ce7a87d56
Remove merklet
2015-11-20 16:29:17 -06:00
UENISHI Kota
9f6b53fc15
Make bigger offset and a bit code cleanup
2015-11-18 14:38:04 +09:00
UENISHI Kota
e11cdfe95c
Add stop and trim command to eqc_statem test on file_proxy
2015-11-18 14:11:25 +09:00
Shunichi Shinohara
ad419ada50
Refactoring, cosmetics, comments
2015-11-17 12:58:54 +09:00
Shunichi Shinohara
049311614f
Fix process leak of CR clients and FLU1 proxy clients
2015-11-17 12:58:50 +09:00
UENISHI Kota
6786820401
Merge pull request #35 from basho/ku/making-file-proxy-spec
...
Add eqc trim tests to machi_file_proxy
2015-11-05 16:27:48 +09:00
UENISHI Kota
81fae32539
Remove unused test function
2015-11-05 16:19:46 +09:00
UENISHI Kota
ce41f9005e
Fix machi_file_proxy_eqc:write_post to proper assertion
2015-11-05 14:48:35 +09:00
Shunichi Shinohara
9e4dc83f2a
Add missing cleanup tasks, suppress some not-so-useful logs
2015-11-05 11:47:47 +09:00
UENISHI Kota
f56037240e
Plan trim commands in eqc tests
2015-11-04 16:32:53 +09:00
UENISHI Kota
c1e5426034
Address PR comments
2015-11-04 16:08:09 +09:00
UENISHI Kota
3b087c0388
Add eqc trim tests to machi_file_proxy
...
* Add description on high client APIs
* Add notes to rethink high client specification
2015-11-04 16:02:29 +09:00
UENISHI Kota
62c8dacc65
Merge pull request #33 from basho/ss-repair-with-partition-simulator
...
Add test for append and repair with partition simulator
2015-11-04 14:44:04 +09:00
Scott Lystig Fritchie
30000d6602
Add doc/machi_chain_manager1_converge_demo.md
2015-11-03 00:27:09 +09:00
Mark Allen
3c5a9e6f53
Torture tests for merkle tree
...
1,000,000 entries - timings and size
2015-11-02 00:12:58 -06:00
Shunichi Shinohara
b5005c3526
Add EQC test case for AP mode repair w/ part. sim.
2015-10-30 10:25:51 +09:00
Mark Allen
7086899941
Reorg merkle tree code into a library
...
Was a service previously. Now contains both merklet
and the naive implementations. Put construction
timing stuff into the test.
Tests are not truly meaningful yet.
2015-10-28 16:59:49 -05:00
UENISHI Kota
f7358424e4
Trim command and GC prototype implementation
...
* maybe_gc/2 is triggered at machi_file_proxy, when chunk is deleted
and the file is larger than `max_file_size`
* A file is deleted if all chunks except 1024 bytes header are trimmed
* If a file is going to be deleted, file_proxy notifies metadata_mgr
to remember the filename persistently, whose filename is
`known_files_<FluName>`
* Such trimmed filenames are stored in a machi_plist file per flu
* machi_file_proxy could not be started if the filename is in the
manager's list. Consequently, any write, read and trim operations
cannot happen against deleted file.
* After the file was trimmed, any read request to the file returns
`{error, trimmed}`
* Disclaimer: no tests written yet and machi_plist does not support
any recovery from partial writes.
* Add some thoughts as comments for repairing trims.
* State diagram of every byte is as follows:
```
state\action| write/append | read_chunk | trim_chunk
------------+----------------+------------------+---------------
unwritten | -> written | fail (+repair) | -> trimmed
written | noop or repair | return content | -> trimmed
trimmed | fail | fail | noop
```
2015-10-28 12:34:03 +09:00
Mark Allen
5e571f6009
Switch to merklet
...
Still a WIP
2015-10-27 16:33:18 -05:00
Mark Allen
1b8401e7de
Initial smoke test
2015-10-27 11:57:38 -05:00
UENISHI Kota
8a61055f55
Support arbitrary bytes write by using find_(left|right)neighbor/2
2015-10-27 13:43:45 +09:00
UENISHI Kota
3d6d4d8be3
Do the slicing in flu server rather than in CR client
2015-10-23 18:49:49 +09:00
UENISHI Kota
0f688d6279
Update read_chunk() PB protocol to return trimmed chunks
2015-10-22 23:11:43 +09:00
Scott Lystig Fritchie
30d7e592a3
Merge pull request #20 from basho/ku/read-all-chunks
...
Allow reading multiple chunks at once
2015-10-21 15:28:10 +09:00
Scott Lystig Fritchie
1c8e436a64
Fix race #3
2015-10-21 15:01:11 +09:00
Scott Lystig Fritchie
9d177c6b54
Fix race #2
2015-10-21 14:45:21 +09:00
Scott Lystig Fritchie
976a701e0c
Fix timeout problem in test/machi_proxy_flu1_client_test.erl
2015-10-21 14:31:58 +09:00
Scott Lystig Fritchie
981b55c070
Fix race #1
2015-10-21 14:31:41 +09:00