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

   <!--
   Thanks for sending a pull request!
   
   Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: 
https://kyuubi.readthedocs.io/en/latest/community/CONTRIBUTING.html
     2. If the PR is related to an issue in 
https://github.com/apache/kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, 
e.g., '[KYUUBI #XXXX] Your PR title ...'.
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., 
'[WIP][KYUUBI #XXXX] Your PR title ...'.
   -->
   
   ### _Why are the changes needed?_
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you add a feature, you can talk about the use case of it.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   Currently, the `KyuubiOperationWithEngineSecuritySuite` is not valid, because
   
   1. `InternalSecurityAccessor` is a singleton, only the first initialized one 
takes effect, which means if we change the testing orders, some tests may fail.
   2. `discoveryClient.startSecretNode` calls `PersistentNode#start` 
underlying, which is async, we should call `waitForInitialCreate` to ensure it 
is created before running the test. Base on my analysis, it may take 30s for 
waiting. (mtime-ctime)
      ```
      [zk: 10.221.106.196:55408(CONNECTED) 2] get /SECRET
      _ENGINE_SECRET_
      cZxid = 0x5
      ctime = Wed Jul 19 23:01:57 CST 2023
      mZxid = 0x7
      mtime = Wed Jul 19 23:02:17 CST 2023
      pZxid = 0x5
      cversion = 0
      dataVersion = 1
      aclVersion = 0
      ephemeralOwner = 0x0
      dataLength = 15
      numChildren = 0
      ```
   ### _How was this patch tested?_
   - [ ] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
   
   - [ ] Add screenshots for manual tests if appropriate
   
   - [x] [Run 
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
 locally before make a pull request
   


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