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

[Improve][CDC] Optimize memory allocation for snapshot split reading #6281

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

hailin0
Copy link
Contributor

@hailin0 hailin0 commented Jan 25, 2024

Purpose of this pull request

[CDC] Optimize memory allocation for snapshot split reading

Does this PR introduce any user-facing change?

No

How was this patch tested?

this pr already exists
#6209

Check list

Hisoka-X
Hisoka-X previously approved these changes Feb 22, 2024
@@ -90,7 +90,9 @@ public MongodbFetchTaskContext(

public void configure(@Nonnull SourceSplitBase sourceSplitBase) {
final int queueSize =
sourceSplitBase.isSnapshotSplit() ? Integer.MAX_VALUE : sourceConfig.getBatchSize();
sourceSplitBase.isSnapshotSplit() && isExactlyOnce()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add some comment for this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@Carl-Zhou-CN Carl-Zhou-CN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@Carl-Zhou-CN Carl-Zhou-CN merged commit 4856645 into apache:dev Feb 29, 2024
7 checks passed
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.

None yet

3 participants