Add service based gcs client (#6686)

This commit is contained in:
fangfengbin
2020-02-05 12:06:25 +08:00
committed by GitHub
parent 37053443b4
commit ade7ebfc0c
22 changed files with 2105 additions and 15 deletions
+5 -3
View File
@@ -18,6 +18,7 @@ namespace streaming {
static std::string store_executable;
static std::string raylet_executable;
static std::string gcs_server_executable;
static std::string actor_executable;
static int node_manager_port;
@@ -25,14 +26,14 @@ class StreamingWriterTest : public StreamingQueueTestBase {
public:
StreamingWriterTest()
: StreamingQueueTestBase(1, raylet_executable, store_executable, node_manager_port,
actor_executable) {}
actor_executable, gcs_server_executable) {}
};
class StreamingExactlySameTest : public StreamingQueueTestBase {
public:
StreamingExactlySameTest()
: StreamingQueueTestBase(1, raylet_executable, store_executable, node_manager_port,
actor_executable) {}
actor_executable, gcs_server_executable) {}
};
TEST_P(StreamingWriterTest, streaming_writer_exactly_once_test) {
@@ -56,10 +57,11 @@ INSTANTIATE_TEST_CASE_P(StreamingTest, StreamingExactlySameTest,
int main(int argc, char **argv) {
// set_streaming_log_config("streaming_writer_test", StreamingLogLevel::INFO, 0);
::testing::InitGoogleTest(&argc, argv);
RAY_CHECK(argc == 5);
RAY_CHECK(argc == 6);
ray::streaming::store_executable = std::string(argv[1]);
ray::streaming::raylet_executable = std::string(argv[2]);
ray::streaming::node_manager_port = std::stoi(std::string(argv[3]));
ray::streaming::actor_executable = std::string(argv[4]);
ray::streaming::gcs_server_executable = std::string(argv[5]);
return RUN_ALL_TESTS();
}