-
Notifications
You must be signed in to change notification settings - Fork 287
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
fb/latency(cdc): agent to be table state awared, to handle different p2p messages. #5820
fb/latency(cdc): agent to be table state awared, to handle different p2p messages. #5820
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
45136a4
to
da11e6e
Compare
7068f9c
to
a673b6a
Compare
/run-unit-test |
7dfbd9e
to
95d60ef
Compare
44968ba
to
14858d7
Compare
/run-all-tests |
cdc/scheduler/internal/tp/table.go
Outdated
type table struct { | ||
id model.TableID | ||
|
||
status schedulepb.TableStatus |
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.
Why not just schedulepb.TableState
?
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.
since this is also used to build heartbeatResponse
, which needs checkpoint.
status
is more useful in such use case.
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.
What about query TableMeta()
when building HeartbeatResponse
? In this way, we don't need refresh
to reconcile checkpoint and resolved ts.
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.
but we still need reconcile state. I don't think there is any difference.
failure by cdc related test passed. |
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (pingcap#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
…p2p messages. (#5820) * add table struct to agent. * agent add table state machine. * simplify coordinator. * agent to be state awared. * call IsRemoveTableFinished to clean table resource from processor. * fix message header. * fix agent. * prepare new agent ready. * fix some test. * add basic ut. * fix agent handle message ut. * add all test. * fix agent handle stopping. * adjust pipeline table state. * refine the agent. * introduce tableManager. * fix all tests. * add some new test. * fix log. * fix by make check * fix by review comment. * fix by review comment. * fix ut. * fix check. * agent fix heartbeat does not refresh each tick. * remove scheduler log. * fix ut. * fix some test. * fix ut. * rename * fix by check.
What problem does this PR solve?
Issue Number: ref #4757
What is changed and how it works?
let the
agent
handle different table state, this makes the message report table's state more accurate.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note