seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Feature][SeaTunnel Engine] Add test to test stream job recover when all cluster node done and restart

Open EricJoy2048 opened this issue 2 years ago • 1 comments

Search before asking

  • [X] I had searched in the feature and found no similar feature requirement.

Description

Add a test to do this:

  1. 3 node cluster start and then submit a stream job (Fake Source -> LocalFile Sink, and Fake Source will write 6000 rows. You can reference https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/ClusterFaultToleranceIT.java)
  2. Stop all nodes when there are some rows write into the local files.
  3. Start all nodes.
  4. Check the job status will recover to Running.
  5. Wait and check the local files will have all the row write from Fake Source and the number of the rows are 6000.
  6. Cannel the job and wait the job's status turn to CANCELED.
  7. Stop the cluster client.
  8. Stop all cluster nodes.

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

EricJoy2048 avatar Nov 14 '22 08:11 EricJoy2048

I want to try this task, it will help me understand engine better. Please assign it to me,thanks.

TaoZex avatar Nov 14 '22 09:11 TaoZex