zhangshenghang commented on code in PR #10131:
URL: https://github.com/apache/seatunnel/pull/10131#discussion_r2639886586
##########
seatunnel-connectors-v2/connector-iceberg/src/main/java/org/apache/seatunnel/connectors/seatunnel/iceberg/source/enumerator/IcebergStreamSplitEnumerator.java:
##########
@@ -111,8 +113,10 @@ public IcebergSplitEnumeratorState snapshotState(long
checkpointId) throws Excep
@Override
public void handleSplitRequest(int subtaskId) {
- if (initialized) {
- stateLock.notifyAll();
+ synchronized (stateLock) {
+ if (initialized) {
Review Comment:
Let's take the principle of minimalism.
```
if (initialized) {
synchronized (stateLock) {
stateLock.notifyAll();
}
}
```
--
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]