EricJoy2048 opened a new issue, #6180: URL: https://github.com/apache/seatunnel/issues/6180
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened JdbcSourceSplitEnumerator.java ``` @Override public JdbcSourceState snapshotState(long checkpointId) throws Exception { synchronized (stateLock) { return new JdbcSourceState(new ArrayList(pendingTables), new HashMap<>(pendingSplits)); } } ``` SourceSplitEnumeratorTask.java ``` synchronized (enumeratorContext) { if (barrier.snapshot()) { snapshotState = enumerator.snapshotState(barrierId); serialize = enumeratorStateSerializer.serialize(snapshotState); } log.debug("source split enumerator send state [{}] to master", snapshotState); sendToAllReader(location -> new BarrierFlowOperation(barrier, location)); } ``` Because `snapshotState` and `serialize` use two different locks, so the `snapshotState` may be modified before serialization. ### SeaTunnel Version dev ### SeaTunnel Config ```conf * ``` ### Running Command ```shell * ``` ### Error Exception ```log * ``` ### Zeta or Flink or Spark Version _No response_ ### Java or Scala Version _No response_ ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
