Skip to content

Commit

Permalink
[INLONG-10006][Agent] Return sourceData in batches
Browse files Browse the repository at this point in the history
  • Loading branch information
haifxu committed Apr 18, 2024
1 parent 718e972 commit 263949a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected List<SourceData> readFromSource() {
List<SourceData> dataList = new ArrayList<>();
try {
int size = 0;
while (size <= BATCH_READ_LINE_TOTAL_LEN) {
while (size < BATCH_READ_LINE_TOTAL_LEN) {
SourceData sourceData = debeziumQueue.poll(1, TimeUnit.SECONDS);
if (sourceData != null) {
size += sourceData.getData().length;
Expand Down

0 comments on commit 263949a

Please sign in to comment.