Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Sukang1002
Copy link

@Sukang1002 Sukang1002 commented Jan 12, 2025

…the value of the delay curve from 20098d to -1ms in the full phase.
@Sukang1002
Copy link
Author

@Sukang1002
Copy link
Author

image MongoDBParallelSourceITCase are all passed the test

Copy link
Contributor

@yuxiqian yuxiqian left a 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) {
Copy link
Contributor

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;
Copy link
Contributor

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

@github-actions github-actions bot added the build label Jan 23, 2025
@Sukang1002
Copy link
Author

@yuxiqian PTAL.

@Sukang1002
Copy link
Author

image MongoDBMetricCase#testSourceMetrics can be tested locally. Have any problem, hard teachers to point out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants