Skip to content

Conversation

@hailin0
Copy link
Member

@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
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
Member 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
chaorongzhi pushed a commit to chaorongzhi/seatunnel that referenced this pull request Aug 21, 2024
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.

3 participants