HeartSaVioR opened a new pull request, #38008:
URL: https://github.com/apache/spark/pull/38008

   ### What changes were proposed in this pull request?
   
   This PR proposes a new test case for applyInPandasWithState to verify 
fault-tolerance semantic is not broken despite of random python worker failure. 
If the sink provides end-to-end exactly-once, the query should respect the 
guarantee. Otherwise, the query should respect stateful exactly-once, but 
at-least-once in terms of outputs.
   
   The test leverages file stream sink which is end-to-end exactly-once, but to 
make the verification simpler, we just verify whether the stateful exactly-once 
is guaranteed despite of python worker failures.
   
   ### Why are the changes needed?
   
   This strengthen the test coverage, especially the fault-tolerance semantic.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   New test added.  Manually ran `./python/run-tests --testnames 
'pyspark.sql.tests.test_pandas_grouped_map_with_state'` 10 times and all 
succeeded.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to