-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Improve][Connector-V2][JDBC] Add exactly-once for JDBC source connector #3750
Conversation
Please do integration test and veirfy the pull request is work. |
A test case can be provided after #3637 . |
Thanks. |
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
this.enumeratorContext = enumeratorContext; | ||
this.jdbcSourceOptions = jdbcSourceOptions; | ||
this.partitionParameter = partitionParameter; | ||
this.pendingSplits = new HashMap<>(); | ||
this.shouldEnumerate = sourceState == null; |
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.
this.shouldEnumerate = sourceState == null; | |
if (sourceState == null) { | |
this.shouldEnumerate = true; | |
} else { | |
this.shouldEnumerate = false; | |
} |
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.
this.shouldEnumerate = sourceState == null; | |
this.shouldEnumerate = sourceState == null ? true : false; |
How about using this way?
…tor (apache#3750) * [Improve][Connector-V2][JDBC] Add exactly-once for JDBC source connector
…tor (apache#3750) * [Improve][Connector-V2][JDBC] Add exactly-once for JDBC source connector
Purpose of this pull request
#3725
Add exactly-once for JDBC source connector
Check list
New License Guide