aajisaka opened a new pull request, #7854:
URL: https://github.com/apache/kyuubi/pull/7854

   ### Why are the changes needed?
   
   The JSON event logging test suites captured the wall-clock date when the 
suite was
   constructed and used it to build `day=<captured date>` event-log paths. 
Event loggers
   partition events by event time, so when a run crossed midnight, events were 
written to the
   new day's partition while the tests queried the previous day's partition, 
failing with
   `PATH_NOT_FOUND`.
   
   This affected `ServerJsonLoggingEventHandlerSuite` and the same pattern 
existed in
   `SparkJsonLoggingEventHandlerSuite`, `TrinoSqlEventSuite`, and
   `HiveEventLoggingServiceSuite`.
   
   The suites now query the event-type roots instead. The engine suites that 
consume event
   files directly glob all matching `day=*` partitions and read them in day 
order.
   
   Fixes #7853.
   
   ### How was this patch tested?
   
   - Verified the fix under a real date rollover by running the suite with a 
custom JVM
     timezone (`JAVA_TOOL_OPTIONS=-Duser.timezone=GMT+HH:MM`) so that midnight 
fell
     mid-run. The event log shows events written to both `day=20261107` and
     `day=20261108`; all 5 tests passed.
   - Verified the failure mode with a negative control: the original suite with 
a stale
     `currentDate` fails all 5 tests with `[PATH_NOT_FOUND] ... day=<stale 
date>`
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: OpenCode (DeepSeek V4.1 Flash)


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