-
Notifications
You must be signed in to change notification settings - Fork 50
Meta handles leader changes and other errorcodes uniformly #423
Meta handles leader changes and other errorcodes uniformly #423
Conversation
Good, just remove all |
5d990d0
to
3b8e06d
Compare
14479d6
to
0987a28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, so many places.
0987a28
to
058a09a
Compare
nice job,massive project. |
@@ -35,20 +36,22 @@ kvstore::ResultCode ActiveHostsMan::updateHostInfo(kvstore::KVStore* kv, | |||
baton.post(); | |||
}); | |||
baton.wait(); | |||
return ret; | |||
return MetaCommon::to(ret); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought, should we completely unified kvstore::ResultCode
and cpp2::ErrorCode
?
For historical reasons, kvstore module cannot depend on storage module, but now that doesn't seem to be the case. so can we using the cpp2::ErrorCode in kvstore module direct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strongly Agree, 👍
At the storage, these two errorcodes are too annoying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this pr is handled like this first, and then I will use a new pr to handle it, otherwise this pr is too big. wdyt?
0a0a13b
to
544935a
Compare
Conflict again, maybe because there are several reverts these days. You could contact @liuyu85cn if necessary. |
544935a
to
778f5f7
Compare
94ae89f
to
878349b
Compare
address comments
878349b
to
a52cc2a
Compare
test passed, ready to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For meta, when the leader changes, it is not handled correctly in most cases, and an incorrect error code is returned. So the leader of the meta was changed, but the meta client received other error codes and did not try again.
This pr uniformly handles the error codes of various operations in meta
BaseProcessor and so on
.benefit: