You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Yulei-Yang (via GitHub)" <gi...@apache.org> on 2024/03/28 09:33:59 UTC

[PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Yulei-Yang opened a new pull request, #32974:
URL: https://github.com/apache/doris/pull/32974

   ## Proposed changes
   
   Issue Number: close #xxx
   ```sql
   org.apache.hadoop.security.KerberosAuthException: failure to login: for principal: doris@EMR-RQF1IMCM using ticket cach
   e file: ?????? javax.security.auth.login.LoginException: Unable to obtain password from user
   
           at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:1986)
           at org.apache.hadoop.security.UserGroupInformation.getUGIFromTicketCache(UserGroupInformation.java:624)
           at org.apache.hadoop.security.UserGroupInformation.getBestUGI(UserGroupInformation.java:597)
           at org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:559)
   Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user
   
           at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:903)
           at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:766)
           at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
           at org.apache.hadoop.security.UserGroupInformation$HadoopLoginContext.login(UserGroupInformation.java:2065)
           at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:1975)
           ... 3 more
   ```
   
   currently, ticket_path is a param in a method, when use tcmalloc, the memory area was freed immediately, so libhdfs cannot get its value.
   
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32974:
URL: https://github.com/apache/doris/pull/32974#issuecomment-2025004193

   PR approved by at least one committer and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #32974:
URL: https://github.com/apache/doris/pull/32974#issuecomment-2024768786

   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR)
   
   Since 2024-03-18, the Document has been moved to [doris-website](https://github.com/apache/doris-website).
   See [Doris Document](https://cwiki.apache.org/confluence/display/DORIS/Doris+Document).


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Posted by "Yulei-Yang (via GitHub)" <gi...@apache.org>.
Yulei-Yang commented on PR #32974:
URL: https://github.com/apache/doris/pull/32974#issuecomment-2024954613

   run buildall


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #32974:
URL: https://github.com/apache/doris/pull/32974


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](kerberos)avoid dangling pointer for kerberos's ticket cache when use tcmalloc [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32974:
URL: https://github.com/apache/doris/pull/32974#issuecomment-2025004233

   PR approved by anyone and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org