smartharsh900-prog opened a new pull request, #60529:
URL: https://github.com/apache/spark/pull/60529

   ### What changes were proposed in this pull request?
   
   Queue input before restarting the Avro query that introduces TTL into 
existing state, and use the default trigger and system clock for the restart. 
Preserve the checkpoint setup and exact schema-error assertions.
   
   ### Why are the changes needed?
   
   Addresses https://github.com/apache/spark/issues/60369 (SPARK-61501).
   
   The restarted query can fail schema validation before the manual clock 
reaches its waiting state. StreamTest.AddData synchronizes with that clock and 
fails if the query has already terminated, before ExpectFailure checks the 
expected exception. AdvanceManualClock also waits for a clock state that a 
terminated query cannot reach. Adding input before starting the query and 
proceeding directly to ExpectFailure removes those synchronization steps.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test orchestration only.
   
   ### How was this patch tested?
   
   On macOS arm64 with Java 21.0.10:
   
   - Both changelog-checkpointing variants passed in the initial run and ten 
additional runs: 22 successful test executions.
   - sql/Test/scalastyle: 0 errors and 0 warnings.
   - git diff --check: passed.
   
   Command: build/sbt 'sql/testOnly *TransformWithStateAvroSuite -- -z "test 
that introducing TTL after restart fails query"'
   
   The runner emitted possible thread-leak warnings; all suites completed with 
no aborted suites or failed tests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-6 / GPT-6.1)
   


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