Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix: fix meta response state to client during configuration query #354

Merged
merged 5 commits into from
Dec 12, 2019

Conversation

foreverneverer
Copy link
Contributor

#332 resolve the core dump when assert the meta state, but the response state to client is not reasonable. This pr fix the bug.

@@ -288,6 +288,30 @@ void meta_service_test_app::state_sync_test()
req.app_name = "make_no_sense";
ss2->query_configuration_by_index(req, resp);
ASSERT_EQ(dsn::ERR_OBJECT_NOT_FOUND, resp.err);

// 3.3 app is dropping/creating/recalling
std::shared_ptr<app_state> app = ss2->get_app(15);
Copy link
Contributor

Choose a reason for hiding this comment

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

我感觉这里用了好多15数字常量不太好,能不能统一到一个变量里?要不然把15改的话需要改一大片

Copy link
Contributor

Choose a reason for hiding this comment

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

不相干的重构可以后续统一改

@neverchanje neverchanje merged commit b5b3b0e into XiaoMi:master Dec 12, 2019
@neverchanje neverchanje changed the title fix: fix meta response state to client fix: fix meta response state to client during configuration query Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants