You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "EricJoy2048 (via GitHub)" <gi...@apache.org> on 2024/01/10 10:51:48 UTC

[I] [Bug] [SplitEnumerator] state may have been modified before serialization [seatunnel]

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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [SplitEnumerator] state may have been modified before serialization [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6180:
URL: https://github.com/apache/seatunnel/issues/6180#issuecomment-1936766217

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [SplitEnumerator] state may have been modified before serialization [seatunnel]

Posted by "EricJoy2048 (via GitHub)" <gi...@apache.org>.
EricJoy2048 commented on issue #6180:
URL: https://github.com/apache/seatunnel/issues/6180#issuecomment-1884616592

   https://github.com/apache/seatunnel/pull/6161/files#top  have same problem.


-- 
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@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org