-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FLINK-37096][cdc-connect] fix The purpose of the issue is to change the value of the delay curve from 20098d to -1ms in the full phase. #3850
base: master
Are you sure you want to change the base?
Conversation
…the value of the delay curve from 20098d to -1ms in the full phase.
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.
Thanks for @Sukang1002's nice work! Just left some trivial comments about codestyle and tests.
|
||
if (isInDbSnapshotPhase && !isSnapshotRecord(record)) { | ||
// Wait for the end of the snapshot phase for the first data to trigger subsequent calculations. | ||
if (isInDbSnapshotPhase && !isSnapshotRecord(record) && messageTimestamp !=0) { |
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.
Please make sure that mvn spotless:apply
/ mvn spotless:check
have been executed before committing to resolve any codestyle violations
emitDelay = | ||
isInDbSnapshotPhase ? 0L : System.currentTimeMillis() - messageTimestamp; | ||
isInDbSnapshotPhase ? -1L : System.currentTimeMillis() - messageTimestamp; |
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.
Maybe we can verify this change by adding a test case similar to MySqlSourceITCase#testSourceMetrics
@yuxiqian PTAL. |
Desc:FLINK-37096