You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/08/25 07:35:30 UTC

[GitHub] [incubator-kyuubi] yanghua commented on a change in pull request #984: [KYUUBI #983] Remove the server flag of method connectionUrl for frontend service

yanghua commented on a change in pull request #984:
URL: https://github.com/apache/incubator-kyuubi/pull/984#discussion_r695479245



##########
File path: kyuubi-common/src/main/scala/org/apache/kyuubi/service/ThriftFrontendService.scala
##########
@@ -105,11 +105,11 @@ class ThriftFrontendService private(name: String, be: BackendService, oomHook: R
     super.initialize(conf)
   }
 
-  override def connectionUrl(server: Boolean = false): String = {
+  override def connectionUrl: String = {
     getServiceState match {
       case s @ ServiceState.LATENT => throw new IllegalStateException(s"Illegal Service State: $s")
       case _ =>
-        if (server || conf.get(ENGINE_CONNECTION_URL_USE_HOSTNAME)) {
+        if (conf.get(ENGINE_CONNECTION_URL_USE_HOSTNAME)) {

Review comment:
       Did you mean this PR introduce the side-effort? When diving into the code base, I found the server flag only be used at [here](https://github.com/apache/incubator-kyuubi/blob/master/kyuubi-common/src/main/scala/org/apache/kyuubi/service/ThriftFrontendService.scala#L131), right? Before this PR, the same logic is also been judged in `KyuubiServer`(KyuubiServer used ThriftFrontendService).
   
   In fact, I haven't thought about the real role of SparkSQLFrontendService. Will it be a CompositeService? ThriftFrontendService will still be used by KyuubiServer. You mean we need to put the judgment logic of the engine configuration in CompositeService (SparkSQLFrontendService)?
   




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

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