You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/03/26 11:37:53 UTC

[GitHub] [incubator-doris] xinghuayu007 opened a new issue #5577: [Bug] keytab file maybe not thread safe

xinghuayu007 opened a new issue #5577:
URL: https://github.com/apache/incubator-doris/issues/5577


   **Describe the bug**
   Thread A has a kerberos account: k_test1, Thread B has another kerberos account: k_test2。When they all broker load at the same time, they will create a keytab file to store the keytab file content. But if the file name is the same, the file content will be covered by another thread, which will cause the kerberos login in failed.
   File name is generated by this rule.
   `tmpFilePath = "/tmp/." +  Long.toString(currentTime) + "_" + Integer.toString(randNumber);`
   it is very low probability to generate the same file name, but in reality, it happened.
   ![未命名图片](https://user-images.githubusercontent.com/12771191/112626059-ade3d800-8e6a-11eb-8dbc-c8ede7a54dc0.jpg)
   
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
    - Browser [e.g. chrome, safari]
    - Version [e.g. 22]
   
   **Smartphone (please complete the following information):**
    - Device: [e.g. iPhone6]
    - OS: [e.g. iOS8.1]
    - Browser [e.g. stock browser, safari]
    - Version [e.g. 22]
   
   **Additional context**
   Add any other context about the problem here.
   


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



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