Skip to content
Commit Detail

Commit 4317029

Author
Rachel Chen <rachel@chens.email> 2022-08-01 08:24:18 -0700
Parents
c2e6f81
Tree
78527a9
chord/kv: major bug fixes

spec/chord: move chord related errors to spec package;
chord/local: return error if the node is not running instead of relying rpc intercept;
chord/local: ensure that tasks routines are stopped last and retry key transfer until succeed;
chord/tasks: use hash function to calculate snapshot checksum instead of XOR for successor list;
chord/kv: rewrite ErrNodeGone to ErrKVStaleOwnership for remote KV;
chord/kv: return ErrNodeGone for LocalPuts for key transfers;
chord_test: correctly test for concurrent scenarios;
cmd/server: inject corresponding node id to respective components

Files changed

14 files changed+1 added~12 modified-1 deleted