You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/12/14 06:07:00 UTC

[jira] [Work logged] (HADOOP-17432) [JDK 16] KerberosUtil#getOidInstance is broken by JEP 396

     [ https://issues.apache.org/jira/browse/HADOOP-17432?focusedWorklogId=523709&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-523709 ]

ASF GitHub Bot logged work on HADOOP-17432:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Dec/20 06:06
            Start Date: 14/Dec/20 06:06
    Worklog Time Spent: 10m 
      Work Description: aajisaka opened a new pull request #2546:
URL: https://github.com/apache/hadoop/pull/2546


   JIRA: https://issues.apache.org/jira/browse/HADOOP-17432
   
   - Removed the use of JDK internal APIs
   - Deprecated KerberosUtil#getOidInstance
   - Use the default OID in Hadoop


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 523709)
    Remaining Estimate: 0h
            Time Spent: 10m

> [JDK 16] KerberosUtil#getOidInstance is broken by JEP 396
> ---------------------------------------------------------
>
>                 Key: HADOOP-17432
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17432
>             Project: Hadoop Common
>          Issue Type: Sub-task
>         Environment: Java 16-ea+28
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> JEP 396 (Strongly Encapsulate JDK Internals by Default) has been migrated since Java 16 EA Build 28. Calling the internal APIs (except the critical APIs such as sun.misc.Unsafe) are banned by default.
> {noformat}
> [INFO] Running org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler
> [ERROR] Tests run: 16, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 17.323 s <<< FAILURE! - in org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler
> [ERROR] testNonDefaultNonBrowserUserAgentAsNonBrowser(org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler)  Time elapsed: 1.272 s  <<< ERROR!
> java.lang.IllegalAccessException: class org.apache.hadoop.security.authentication.util.KerberosUtil cannot access class sun.security.jgss.GSSUtil (in module java.security.jgss) because module java.security.jgss does not export sun.security.jgss to unnamed module @48967c8b
> 	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
> 	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
> 	at java.base/java.lang.reflect.Field.checkAccess(Field.java:1096)
> 	at java.base/java.lang.reflect.Field.get(Field.java:417)
> 	at org.apache.hadoop.security.authentication.util.KerberosUtil.getOidInstance(KerberosUtil.java:90)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org