You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/03/09 04:20:54 UTC

[GitHub] [incubator-kyuubi] ulysses-you commented on a change in pull request #2059: [KYUUBI #1936] Send credentials when opening session and wait for completion

ulysses-you commented on a change in pull request #2059:
URL: https://github.com/apache/incubator-kyuubi/pull/2059#discussion_r822274273



##########
File path: kyuubi-server/src/main/scala/org/apache/kyuubi/credentials/HadoopCredentialsManager.scala
##########
@@ -219,13 +233,23 @@ class HadoopCredentialsManager private (name: String) extends AbstractService(na
                 s" $renewalRetryWait ms",
               e)
             scheduleRenewal(userRef, renewalRetryWait)
+            // throw exception when one-time execution fails,
+            // so that client side can be aware of this
+            if (waitCompletion) {
+              throw new KyuubiException(s"One-time execution failed for token update task " +

Review comment:
       I'm confused with the code, we always do `scheduleRenewal` if encounter Exception, so how can we go into here ? But I see the test has checked the `KyuubiException` successfully, am I miss something ? @turboFei 




-- 
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: notifications-unsubscribe@kyuubi.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org