EricJoy2048 opened a new issue, #2801:
URL: https://github.com/apache/incubator-seatunnel/issues/2801

   ### Search before asking
   
   - [X] I had searched in the 
[feature](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   We need support data consistency test in connector v2 e2e. I have some idea 
about it and welcome everyone to discuss.
   
   #### Fake Source
   If we want to test the data consistency of a sink connector, We can use the 
`Fake Source` connector. The Fake Source Connector support define row numbers 
and Primary key fields in the feature. Defile Primary key fields is useful to 
test exactly-once sink which implement exactly-once by Idempotent write data. 
If we can simulate task failure and then restore task, We can complete the data 
consistency test.
   
   #### How to simulate task failure and restore task.
   I think we can use `Fake Source` connector to simulate task failure too. We 
can add some active triggering failure function in Fake Source. To ensure Fake 
Source can support read playback, the Fake Source need support snapshot too.
   
   #### How to check data
   We can check the rows that wrote in sink.
   
    
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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]

Reply via email to