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

   ## Why are the changes needed?
   
   JDK 24 made `AccessController.getContext()` throw 
`UnsupportedOperationException` (JEP 486), and JDK 25 extended this to 
`Subject.getSubject()`. Both APIs are called in `KyuubiConnection.java` during 
Kerberos authentication setup, breaking JDBC connections on JDK 25 with:
   
   ```
   java.lang.UnsupportedOperationException: getSubject is not supported
   ```
   
   Fixes #7549.
   
   ## How was this patch tested?
   
   - Added `SubjectUtilTest` which verifies `SubjectUtil.current()` does not 
throw and returns `null` when no subject is associated with the current thread.
   - Full `kyuubi-hive-jdbc` unit suite passes (39 tests).
   - Manual compile verification with `-Pfast` profile.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Assisted-by: Claude:claude-sonnet-4-6


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