Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce proxy_server and new-mock-engine-store (#120)
Introduce crate proxy_server for a decouple of component/server, it will be used to start a proxy service. Introduce crate new-mock-engine-store as a new mock-engine-store plus a test_raftstore implementation for proxy. This will enable us to run mix-mode tests. Tests in tests/failpoints and tests/integrations are obsolete tests and will be removed once the refactor ends. New tests should be added in tests/proxy with support of new-mock-engine-store. Introduce crate engine_tiflash as a new KvEngine. It currently just works like former RocksEngine, unless we enable compat_new_proxy. Since some PRs have not been merged in TiKV, we can only enable this feature in some tests in tests/proxy. It can not be enabled in formal codes, since it can filter some writes. cherry pick newly merge TiKV PRs, aka on_empty_cmd. Fix some bugs. * f Signed-off-by: CalvinNeo <[email protected]> * fix Signed-off-by: CalvinNeo <[email protected]> * add engine_tiflash with this version of engine_rocks Signed-off-by: CalvinNeo <[email protected]> * fmt Signed-off-by: CalvinNeo <[email protected]> * add engine_tiflash actually Signed-off-by: CalvinNeo <[email protected]> * fix Signed-off-by: CalvinNeo <[email protected]> * fix some tests Signed-off-by: CalvinNeo <[email protected]> * f Signed-off-by: CalvinNeo <[email protected]> * it runs if we do_write everytime Signed-off-by: CalvinNeo <[email protected]> * add ensure_no_common_unrecognized_keys to config checker Signed-off-by: CalvinNeo <[email protected]> * reorg tests Signed-off-by: CalvinNeo <[email protected]> * raftstore: Implement coprocessor observer on_empty_cmd (tikv#12851) ref tikv#12849 Support new observers on_empty_cmd. Signed-off-by: CalvinNeo <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]> * fix tests Signed-off-by: CalvinNeo <[email protected]> * move proxy-related code in component/server into proxy_server Signed-off-by: CalvinNeo <[email protected]> * move codes in component/server/src/setup.rs into proxy_server Signed-off-by: CalvinNeo <[email protected]> * support new ffis in mock-engine-store and new-mock-engine-store Signed-off-by: CalvinNeo <[email protected]> * add disclaimer Signed-off-by: CalvinNeo <[email protected]> * enlength some test time Signed-off-by: CalvinNeo <[email protected]> * Remove pub fields of PdCluster, add feature to origin import Signed-off-by: CalvinNeo <[email protected]> * f Signed-off-by: CalvinNeo <[email protected]> * add Signed-off-by: CalvinNeo <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
- Loading branch information