aajisaka opened a new issue, #7853:
URL: https://github.com/apache/kyuubi/issues/7853

   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   Several JSON event logging test suites capture the current date when the 
suite is
   constructed and use it to build event-log paths under `day=<captured date>`. 
Event loggers
   partition events by event time, so when a suite starts before midnight and a 
test executes
   after midnight, events are written to the new day's partition while the test 
reads the
   previous day's partition. The test then fails with `PATH_NOT_FOUND`.
   
   This was observed in `ServerJsonLoggingEventHandlerSuite`. The same pattern 
exists in:
   
   - 
`externals/kyuubi-spark-sql-engine/.../SparkJsonLoggingEventHandlerSuite.scala`
   - `externals/kyuubi-trino-engine/.../TrinoSqlEventSuite.scala`
   - `externals/kyuubi-hive-sql-engine/.../HiveEventLoggingServiceSuite.scala`
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   [PATH_NOT_FOUND] Path does not exist:
   
file:/home/runner/work/kyuubi/kyuubi/kyuubi-server/target/tmp/.../kyuubi_operation/day=20261106
   The event-handler log in the same run shows events being written to 
day=20261107 after midnight.
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   
   ```
   
   ### Additional context
   
   CI run: https://github.com/apache/kyuubi/actions/runs/42302405512
   
   Failed jobs:
   - https://github.com/apache/kyuubi/actions/runs/42302405512/job/128183434524 
— Spark 4.2.1 binary verification
   - https://github.com/apache/kyuubi/actions/runs/42302405512/job/128183434625 
— Spark 4.3.0 binary verification
   
   Both started around 23:11–23:12 UTC and ran past midnight UTC. Five tests 
failed in
   `kyuubi-server`:
   
   - round-trip for logging and querying statement events for both kyuubi 
server and engine
   - test Kyuubi session event
   - engine session id is same with server session id
   - test Kyuubi server info event
   - open session exception
   
   Proposed fix: read the event-type roots instead of a captured `day=` 
partition. For the
   engine suites that consume event files directly, glob all matching `day=*` 
partitions and
   read them in day order. This removes the dependency on the suite 
construction time.
   
   Related: PR #936 added the `day=` partition to the JSON event path, but this 
is a
   test-side issue.
   
   ### Are you willing to submit PR?
   
   - [x] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


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

  • [I] [Bug][TEST] JSON event ... aajisaka (via GitHub) via notifications

Reply via email to