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/11/08 08:24:14 UTC

[GitHub] [incubator-kyuubi] CHzxp opened a new pull request, #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

CHzxp opened a new pull request, #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783

   Why are the changes needed?_
   As described in issues https://github.com/apache/incubator-kyuubi/issues/3781: other session task will fail when other session add repeat jar
   
   
   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
   
   - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/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: 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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308183247

   > > add repeat add will failed if throw exception, but other sqls will execute continue after this add repeat jar command
   > 
   > how can this happen ? In a sql script, if the previous sql failed then the whole script should fail. It's not about this pr, For example if user `create table t` failed then the follow `select * from t` should still be executed ? This behavior (close connection) should be corrected at client side.
   @ulysses-you , I seem to understand
   


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


[GitHub] [incubator-kyuubi] ulysses-you commented on a diff in pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on code in PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#discussion_r1016435526


##########
extensions/spark/kyuubi-extension-spark-3-2/src/main/scala/org/apache/kyuubi/sql/AddRepeatJarCloseSession.scala:
##########
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.kyuubi.sql
+
+import org.apache.spark.SparkContext
+import org.apache.spark.sql.SparkSession
+import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
+import org.apache.spark.sql.catalyst.rules.Rule
+import org.apache.spark.sql.execution.command.AddJarsCommand
+
+case class AddRepeatJarCloseSession(session: SparkSession) extends Rule[LogicalPlan] {
+
+  override def apply(plan: LogicalPlan): LogicalPlan = {
+
+    plan match {
+      case i @ AddJarsCommand(paths) =>
+        val checkExistsResult = findJarNameIfExists(session.sparkContext, paths)
+        if (checkExistsResult.nonEmpty) {
+          session.close()

Review Comment:
   Why close session ? it will shutdown the Spark application



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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1306833647

   This extension will continue to be optimized in the future: jar name compute may not be comprehensive enough
   


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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308262007

   > > add repeat add will failed if throw exception, but other sqls will execute continue after this add repeat jar command
   > 
   > how can this happen ? In a sql script, if the previous sql failed then the whole script should fail. It's not about this pr, For example if user `create table t` failed then the follow `select * from t` should still be executed ? This behavior (close connection) should be corrected at client side.
   
   if user execute sqls by jdbc conn? We can't guarantee that every sql executed by the user has nothing to do with the jar, so we think the current session is a dangerous session, so close this session. namely we only execute normal sql before this repeat jar unless user config  spark.files.overwrite=true


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


[GitHub] [incubator-kyuubi] ulysses-you commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1306983121

   The reason is Spark does not support dependencies isolation, I'm fine with a workaround


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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1307212082

   My original idea is to close the user's jdbc session, because  I think the current session is a dangerous connection unless user modify their sqls or set config spark.files.overwrite=true


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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308160871

   > @CHzxp we do not need close this session, the add jar command have not executed. A simple way is just throw exception to forbid.
   > 
   > +1 to add a new config for this rule
   when user execute multiple sqls, add repeat add will failed if throw exception, but other sqls will execute continue after this add repeat jar command. i think it is better to discard all left sql after repeat jar command instead of execute left sql continue. because spark can not decide to choose which jar is user want to use , it is a user operation.


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


[GitHub] [incubator-kyuubi] ulysses-you commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1307120960

   > how do you solve this problem?
   
   @CHzxp I mean this pr is a workaround


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


[GitHub] [incubator-kyuubi] CHzxp commented on a diff in pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on code in PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#discussion_r1016546871


##########
extensions/spark/kyuubi-extension-spark-3-2/src/main/scala/org/apache/kyuubi/sql/AddRepeatJarCloseSession.scala:
##########
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.kyuubi.sql
+
+import org.apache.spark.SparkContext
+import org.apache.spark.sql.SparkSession
+import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
+import org.apache.spark.sql.catalyst.rules.Rule
+import org.apache.spark.sql.execution.command.AddJarsCommand
+
+case class AddRepeatJarCloseSession(session: SparkSession) extends Rule[LogicalPlan] {
+
+  override def apply(plan: LogicalPlan): LogicalPlan = {
+
+    plan match {
+      case i @ AddJarsCommand(paths) =>

Review Comment:
   i will test it after , this problem is from  add jar command



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


[GitHub] [incubator-kyuubi] cxzl25 commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
cxzl25 commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1307176178

   ### add file
   ```sql
   add file hdfs://xx/yy/z.txt;
   add file hdfs://xx/z.txt;
   ```
   Spark drive will try to fetch the remote file to the local, the file name is the same, but the file content is different, so the second add file execution fails.
   ```
   exists and does not match contents of
   
   	at org.apache.spark.util.Utils$.copyFile(Utils.scala:728)
   	at org.apache.spark.util.Utils$.downloadFile(Utils.scala:679)
   	at org.apache.spark.util.Utils$.fetchHcfsFile(Utils.scala:852)
   	at org.apache.spark.util.Utils$.doFetchFile(Utils.scala:826)
   	at org.apache.spark.util.Utils$.fetchFile(Utils.scala:592)
   	at org.apache.spark.SparkContext.addFile(SparkContext.scala:1648)
   	at org.apache.spark.SparkContext.addFile(SparkContext.scala:1601)
   	at org.apache.spark.sql.execution.command.AddFilesCommand.$anonfun$run$2(resources.scala:43)
   	at org.apache.spark.sql.execution.command.AddFilesCommand.$anonfun$run$2$adapted(resources.scala:43)
   	at scala.collection.immutable.Stream.foreach(Stream.scala:533)
   	at org.apache.spark.sql.execution.command.AddFilesCommand.run(resources.scala:43)
   	at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:75
   ```
   ### add jar
   ```
   add jar hdfs://xx/yy/z.jar;
   add jar hdfs://xx/z.jar;
   ```
   Because spark drive supports hdfs as the class path, there is no fetch to the local. `SparkContext#addJar` is successfully executed twice, but because the file name is the same and the file content is different, the executor always fails when downloading the second jar and cannot execute subsequent tasks.
   
   
   ### workaround
   It is allowed when the remote path is different, but the file name is the same as the file content.
   
   It is allowed when the remote path is different, but the file name is the same as the file content
   If the file content is different, a compromise is to enable `spark.files.overwrite=true`, but it will overwrite the previous file.
   
   | Property Name | Default | Meaning | Since Version |
   |---------------|---------|---------|---------------|
   | spark.files.overwrite | false | Whether to overwrite any files which exist at the startup. Users can not overwrite the files added by SparkContext.addFile or SparkContext.addJar before even if this option is set true. | 1.0.0 |
   
   ### advice
   
   It is recommended to add a configuration to this rule so that some users have a way to disable it.
   
   For example, I implemented the renaming of the file name in the executor fetch remote jar in spark, to avoid the same name, and to ensure that the engine can run the task, because for the classloader, it does not care about the file name of the jar.
   


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


[GitHub] [incubator-kyuubi] ulysses-you commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308168407

   > add repeat add will failed if throw exception, but other sqls will execute continue after this add repeat jar command
   
   how can this happen ? In a sql script, if the previous sql failed then the whole script should fail. It's not about this pr, For example if user `create table t` failed then the follow `select * from t` should still be executed ? This behavior (close connection) should be corrected at client side.


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


[GitHub] [incubator-kyuubi] ulysses-you commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308073014

   @CHzxp we do not need close this session, the add jar command have not executed. A simple way is just throw exception to forbid.
   
   + 1 to add a new config for this rule


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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1308175713

   > > add repeat add will failed if throw exception, but other sqls will execute continue after this add repeat jar command
   > 
   > how can this happen ? In a sql script, if the previous sql failed then the whole script should fail. It's not about this pr, For example if user `create table t` failed then the follow `select * from t` should still be executed ? This behavior (close connection) should be corrected at client side.
   
   @ulysses-you sqls from beeline -e or beeline -f or jdbc will split into multiple single sql and execute them one by one.
   code location :
   org.apache.hive.beeline.Commands#execute
   line = line.trim();
               List<String> cmdList = this.getCmdList(line, entireLineAsCommand);
   
               for(int i = 0; i < cmdList.size(); ++i) {
                   String sql = ((String)cmdList.get(i)).trim();
                   if (sql.length() != 0 && !this.executeInternal(sql, call)) {
                       return false;
                   }
               }
   
   


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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1307106152

   > The reason is Spark does not support dependencies isolation, I'm fine with a workaround
   
   how do you solve this problem?


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


[GitHub] [incubator-kyuubi] codecov-commenter commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1306945350

   # [Codecov](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#3783](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ee84ed7) into [master](https://codecov.io/gh/apache/incubator-kyuubi/commit/78e80b8e012d7f195eb2f5210946d23944a68b7c?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (78e80b8) will **decrease** coverage by `0.07%`.
   > The diff coverage is `18.75%`.
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #3783      +/-   ##
   ============================================
   - Coverage     52.63%   52.55%   -0.08%     
     Complexity       13       13              
   ============================================
     Files           494      495       +1     
     Lines         27829    27845      +16     
     Branches       3847     3849       +2     
   ============================================
   - Hits          14647    14634      -13     
   - Misses        11795    11816      +21     
   - Partials       1387     1395       +8     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...g/apache/kyuubi/sql/AddRepeatJarCloseSession.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXh0ZW5zaW9ucy9zcGFyay9reXV1YmktZXh0ZW5zaW9uLXNwYXJrLTMtMi9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zcWwvQWRkUmVwZWF0SmFyQ2xvc2VTZXNzaW9uLnNjYWxh) | `18.75% <18.75%> (ø)` | |
   | [.../kyuubi/server/mysql/constant/MySQLErrorCode.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2ZXIvbXlzcWwvY29uc3RhbnQvTXlTUUxFcnJvckNvZGUuc2NhbGE=) | `13.84% <0.00%> (-6.16%)` | :arrow_down: |
   | [...ache/kyuubi/server/mysql/MySQLCommandHandler.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2ZXIvbXlzcWwvTXlTUUxDb21tYW5kSGFuZGxlci5zY2FsYQ==) | `76.84% <0.00%> (-4.22%)` | :arrow_down: |
   | [...ache/kyuubi/server/mysql/MySQLGenericPackets.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2ZXIvbXlzcWwvTXlTUUxHZW5lcmljUGFja2V0cy5zY2FsYQ==) | `76.59% <0.00%> (-2.13%)` | :arrow_down: |
   | [...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLWN0bC9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9jdGwvY21kL2xvZy9Mb2dCYXRjaENvbW1hbmQuc2NhbGE=) | `63.93% <0.00%> (-1.64%)` | :arrow_down: |
   | [...ain/scala/org/apache/kyuubi/engine/EngineRef.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvRW5naW5lUmVmLnNjYWxh) | `73.84% <0.00%> (-0.77%)` | :arrow_down: |
   | [...yuubi/server/metadata/jdbc/JDBCMetadataStore.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2ZXIvbWV0YWRhdGEvamRiYy9KREJDTWV0YWRhdGFTdG9yZS5zY2FsYQ==) | `89.27% <0.00%> (-0.70%)` | :arrow_down: |
   | [...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLXNlcnZlci9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9lbmdpbmUvUHJvY0J1aWxkZXIuc2NhbGE=) | `80.74% <0.00%> (-0.63%)` | :arrow_down: |
   | [...he/kyuubi/ha/client/etcd/EtcdDiscoveryClient.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLWhhL3NyYy9tYWluL3NjYWxhL29yZy9hcGFjaGUva3l1dWJpL2hhL2NsaWVudC9ldGNkL0V0Y2REaXNjb3ZlcnlDbGllbnQuc2NhbGE=) | `68.33% <0.00%> (-0.56%)` | :arrow_down: |
   | [...a/org/apache/kyuubi/service/TFrontendService.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3783/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-a3l1dWJpLWNvbW1vbi9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9zZXJ2aWNlL1RGcm9udGVuZFNlcnZpY2Uuc2NhbGE=) | `90.98% <0.00%> (-0.30%)` | :arrow_down: |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


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


[GitHub] [incubator-kyuubi] ulysses-you commented on a diff in pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on code in PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#discussion_r1016436706


##########
extensions/spark/kyuubi-extension-spark-3-2/src/main/scala/org/apache/kyuubi/sql/AddRepeatJarCloseSession.scala:
##########
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.kyuubi.sql
+
+import org.apache.spark.SparkContext
+import org.apache.spark.sql.SparkSession
+import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
+import org.apache.spark.sql.catalyst.rules.Rule
+import org.apache.spark.sql.execution.command.AddJarsCommand
+
+case class AddRepeatJarCloseSession(session: SparkSession) extends Rule[LogicalPlan] {
+
+  override def apply(plan: LogicalPlan): LogicalPlan = {
+
+    plan match {
+      case i @ AddJarsCommand(paths) =>

Review Comment:
   `AddFilesCommand` and `AddArchivesCommand` have the same issue ?



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


[GitHub] [incubator-kyuubi] CHzxp commented on pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by GitBox <gi...@apache.org>.
CHzxp commented on PR #3783:
URL: https://github.com/apache/incubator-kyuubi/pull/3783#issuecomment-1307126430

   > > how do you solve this problem?
   > 
   > @CHzxp I mean this pr is a workaround
   
   fine, close sparkSession is not a elegant solution, let me think again, thank you !


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


[GitHub] [kyuubi] pan3793 closed pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed pull request #3783: [KYUUBI #3781] add repeat jar will case other session DML failed
URL: https://github.com/apache/kyuubi/pull/3783


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