-
Notifications
You must be signed in to change notification settings - Fork 600
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
feat(source): support source failover & refactor #2257
Conversation
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #2257 +/- ##
==========================================
- Coverage 71.07% 70.98% -0.10%
==========================================
Files 675 676 +1
Lines 84502 84736 +234
==========================================
+ Hits 60061 60150 +89
- Misses 24441 24586 +145
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
pub struct ConnectorState { | ||
pub identifier: Bytes, | ||
pub start_offset: String, | ||
pub end_offset: String, | ||
} | ||
|
||
impl SplitMetaData for ConnectorState { |
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 think ConnectorState is not a SplitMetaData? It's not going to be used by list_splits()
.
impl SplitMetaData for ConnectorState { | |
impl ConnectorState { |
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.
The contents of the SourceStateHandler
store need to implement the trait.
Signed-off-by: tabVersion <[email protected]>
* stage Signed-off-by: tabVersion <[email protected]> * load state before stream begins Signed-off-by: tabVersion <[email protected]> * bring stream chunk and offset to executor Signed-off-by: tabVersion <[email protected]> * modify stream format to either Signed-off-by: tabVersion <[email protected]> * use future::pending instead of dead loop Signed-off-by: tabVersion <[email protected]> * make split_offset_mapping an option Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
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.
license-eye has totally checked 784 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
782 | 1 | 1 | 0 |
Click to see the invalid file list
- src/connector/src/dummy_connector.rs
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
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, StreamChunkWithState
looks weird to me but anyway we can probably try another approach later.
Signed-off-by: tabVersion [email protected]
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:
support failover.
DummyConnector
, it will serve as an idle connector for the executor which is assigned no split.rename SourceSplit -> SplitMetaData:
Checklist
Refer to a related PR or issue link (optional)
#1963