Open h-w-chen opened 2 years ago
Please refer to https://github.com/CentaurusInfra/kv-store-poc/blob/main/src/kv_store/piping/chain_piping_manager.h#L63 throw std::logic_error("no replica to read from for rev " + std::to_string(rev)); // (╯°□°)╯︵ ┻━┻
We read values from replicas not from primary. If there is one node, which means there is no replica at all. Therefore, it fails to read values.
Please let me know if there is any design change.
after posting values for a specific key, query of its value returns unexpected response: the number of nodes is 1, which means there is no replica
What is expected: the latest value of the key What is specific: only one (the local) redis is set up
How to reproduce
curl -X POST 127.0.0.1:8090/kv -d '{"key":"testk", "value":"testv"}'
; notice the response isThe key value pair (testk,testv) has been saved as revision 6 at 127.0.0.1:16378
, assuming successcurl 127.0.0.1:8090/kv?key=testk
the response is