-
Notifications
You must be signed in to change notification settings - Fork 32
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
[ISSUE #51] Optimize the source task commit method #52
Merged
odbozhou
merged 22 commits into
openmessaging:master
from
sunxiaojian:optimize-commit-method
Jul 14, 2022
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c15757b
SinkTask and SourceTask implement the validate method https://github.…
sunxiaojian dcc706d
Adjust the init and start methods of the component interface
sunxiaojian fa134ee
Set pause and resume to deprecated methods. It feels like they can be…
sunxiaojian 55b9ac0
Add struct object and optimize schema and schema builder API #41
sunxiaojian c72659e
add offset storage writer #41
sunxiaojian e6deeb8
add getter and setter method #41
sunxiaojian aa9f315
add SchemaAndValue #41
sunxiaojian 23ed62a
add logical type #41
sunxiaojian 26fe155
Schemabuilder add required method
sunxiaojian 3e6f1e6
schema add hashCode and equals method
sunxiaojian 14765cb
fixed doc method
sunxiaojian a6b3c79
Field add equals and hashcode method
sunxiaojian 427e009
optimize api #85
sunxiaojian 1dc98a3
Merge branch 'dev'
sunxiaojian a38fa65
Merge branch 'optimize-api'
sunxiaojian c2314fb
Merge branch 'openmessaging:master' into master
sunxiaojian c4b1836
Optimize transform api #45
sunxiaojian c76d2fb
Optimize transform api and add RecordConverter
sunxiaojian ed258b0
Merge branch 'openmessaging:master' into master
sunxiaojian db8f31f
Merge branch 'openmessaging:master' into master
sunxiaojian c2205c3
Optimize the source task commit method #51
sunxiaojian 5d7f13f
add batch commit #51
sunxiaojian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
对于某些Source保留Offset的场景,如果一次commit一批数据,Source可以根据不同的分区信息,选择每个分区的最新位点进行提交,以此降低提交的频次;如果是单个提交,类似的场景就不好处理。
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.
次处主要的考虑主要有以下几点,
所以,觉得提交单条还是更纯粹一点
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.
这里我理解你讲的是send单条数据的场景,但是有些场景下,我们需要支持send一批数据。
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.
嗯,考虑过这个问题,但是一个source task拉取的数据可能不是写入同一个topic,可能是多个,这个要看写插件的逻辑定;所以可能暂时用不到,也可能一直用不到,如果需要时可以加上