Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init of GraphService and check it #415

Closed
wants to merge 4 commits into from
Closed

Add init of GraphService and check it #415

wants to merge 4 commits into from

Conversation

laura-ding
Copy link
Contributor

@laura-ding laura-ding commented May 22, 2019

close #557

@laura-ding laura-ding added the ready-for-testing PR: ready for the CI test label May 22, 2019
@@ -230,6 +230,9 @@ StatusOr<HostAddr> NetworkUtils::toHostAddr(folly::StringPiece ipPort) {
}

StatusOr<std::vector<HostAddr>> NetworkUtils::toHosts(const std::string& peersStr) {
if (peersStr.empty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should NOT forbid empty peersStr.
Because in some cases, we actually pass in empty string.

@nebula-community-bot
Copy link
Member

Unit testing passed.

1 similar comment
@nebula-community-bot
Copy link
Member

Unit testing passed.

@@ -25,9 +25,10 @@ ExecutionEngine::~ExecutionEngine() {

Status ExecutionEngine::init(std::shared_ptr<folly::IOThreadPoolExecutor> ioExecutor) {
auto addrs = network::NetworkUtils::toHosts(FLAGS_meta_server_addrs);
if (!addrs.ok()) {
if (!addrs.ok() || addrs.value().empty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If FLAGS_meta_server_addrs is not empty, in which case "toHosts" return empty array?

@@ -28,7 +28,11 @@ void TestEnv::SetUp() {
using ThriftServer = apache::thrift::ThriftServer;
server_ = std::make_unique<ThriftServer>();
server_->getIOThreadPool()->setNumThreads(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about multiple threads tests?

@nebula-community-bot
Copy link
Member

Unit testing passed.

whitewum
whitewum previously approved these changes Jun 19, 2019
Copy link
Contributor

@whitewum whitewum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ok if add one more cases for the empty case.

@nebula-community-bot
Copy link
Member

Unit testing failed.

dutor
dutor previously approved these changes Jun 28, 2019
@nebula-community-bot
Copy link
Member

Unit testing passed.

@laura-ding
Copy link
Contributor Author

the pr is so long time, close it

@laura-ding laura-ding closed this Jul 24, 2019
@laura-ding laura-ding deleted the check_init branch October 30, 2019 11:00
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* Add session context definition

* Add local seesion command

* Add show local queries command and depracate show all queries

* Fix ut

* Fix pytest

* Add tck case

* Save multiple sessions in the cluster fixture in TCK

* Add tck case

* Format

Co-authored-by: Yichen Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix failed UT data_test
5 participants