-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
f2f506d
to
2e78048
Compare
@@ -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() |
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.
Shall we add some comment for this change?
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.
+1
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.
fixed
2e78048
to
ab51538
Compare
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.
+1
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
New License Guide
release-note
.