rmfrall commented on PR #13654:
URL: https://github.com/apache/seatunnel/pull/13654#issuecomment-7248511534

   @DanielLeens Thanks for the review, and for catching the fixed-delay 
weakness in the resumed path! You're right that a loaded CI machine can still 
be making progress at the 30s mark, so the old form cancelled valid work and 
reported it as a data-completeness failure.
   
   I've replaced the fixed sleep with a bounded wait for the expected row 
count, in the same Awaitility style the rest of the class already uses, before 
cancelling - keeping the CANCELED assertion and the final exact-count check in 
place (SavePointTest.java:200-217). Since both savepoint variants share 
`savePointAndRestore`, the same-engine variant gets the same guarantee, and the 
happy path now proceeds as soon as all rows are written instead of waiting out 
the full 30s.
   
   Verified with the targeted test run twice in a row, plus the full class 
regression (6/6, about 30s faster than before the change since the happy path 
no longer waits out the fixed sleep). Pushed as e4e3a756.


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