You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "EMsnap (via GitHub)" <gi...@apache.org> on 2023/06/05 06:23:23 UTC
[GitHub] [inlong] EMsnap commented on a diff in pull request #8131: [INLONG-8125][Sort] Optimizing the speed of transitioning from snapshot to binlog
EMsnap commented on code in PR #8131:
URL: https://github.com/apache/inlong/pull/8131#discussion_r1217568363
##########
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/mysql-cdc/src/main/java/org/apache/inlong/sort/cdc/mysql/source/reader/MySqlSourceReader.java:
##########
@@ -228,6 +229,8 @@ public void addSplits(List<MySqlSplit> splits) {
uncompletedBinlogSplits.remove(split.splitId());
MySqlBinlogSplit mySqlBinlogSplit =
discoverTableSchemasForBinlogSplit(split.asBinlogSplit());
+ mySqlBinlogSplit.getFinishedSnapshotSplitInfos()
+ .sort((a, b) -> chunkId(a.getSplitId()) - chunkId(b.getSplitId()));
Review Comment:
Comparator.comparingInt(a -> chunkId(a.getSplitId()))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org