hailin0 commented on code in PR #5904:
URL: https://github.com/apache/seatunnel/pull/5904#discussion_r1404874140
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/source/JdbcSourceReader.java:
##########
@@ -60,25 +60,23 @@ public void close() throws IOException {
@Override
@SuppressWarnings("magicnumber")
public void pollNext(Collector<SeaTunnelRow> output) throws Exception {
- synchronized (output.getCheckpointLock()) {
Review Comment:
The `snapshotState` method and `pollNext` work together to operate splits.
Removing the lock will cause the split to be lost.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]