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/12/07 06:04:36 UTC

[GitHub] [incubator-kyuubi] wForget opened a new pull request, #3919: Refactor lineage plugin to add LineageDispatcher

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

   <!--
   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/incubator-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.
   -->
   
   
   ### _How was this patch tested?_
   - [X] 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] codecov-commenter commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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

   # [Codecov](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919?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 [#3919](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (334d036) into [master](https://codecov.io/gh/apache/incubator-kyuubi/commit/8eac51385b42c42a29d34e2208d512a7bc2d86bf?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (8eac513) will **increase** coverage by `0.04%`.
   > The diff coverage is `66.66%`.
   
   > :exclamation: Current head 334d036 differs from pull request most recent head 686c2b5. Consider uploading reports for the commit 686c2b5 to get more accurate results
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #3919      +/-   ##
   ============================================
   + Coverage     51.88%   51.93%   +0.04%     
     Complexity       13       13              
   ============================================
     Files           521      512       -9     
     Lines         28834    29063     +229     
     Branches       3862     3989     +127     
   ============================================
   + Hits          14961    15094     +133     
   - Misses        12500    12535      +35     
   - Partials       1373     1434      +61     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...ala/org/apache/kyuubi/plugin/lineage/Lineage.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9MaW5lYWdlLnNjYWxh) | `65.00% <ø> (ø)` | |
   | [...in/lineage/helper/SparkSQLLineageParseHelper.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9oZWxwZXIvU3BhcmtTUUxMaW5lYWdlUGFyc2VIZWxwZXIuc2NhbGE=) | `62.70% <ø> (+0.26%)` | :arrow_up: |
   | [...ache/kyuubi/plugin/lineage/LineageDispatcher.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9MaW5lYWdlRGlzcGF0Y2hlci5zY2FsYQ==) | `50.00% <50.00%> (ø)` | |
   | [.../SparkOperationLineageQueryExecutionListener.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9TcGFya09wZXJhdGlvbkxpbmVhZ2VRdWVyeUV4ZWN1dGlvbkxpc3RlbmVyLnNjYWxh) | `66.66% <50.00%> (ø)` | |
   | [...gin/lineage/dispatcher/KyuubiEventDispatcher.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9kaXNwYXRjaGVyL0t5dXViaUV2ZW50RGlzcGF0Y2hlci5zY2FsYQ==) | `63.63% <63.63%> (ø)` | |
   | [...ugin/lineage/dispatcher/SparkEventDispatcher.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2t5dXViaS9wbHVnaW4vbGluZWFnZS9kaXNwYXRjaGVyL1NwYXJrRXZlbnREaXNwYXRjaGVyLnNjYWxh) | `70.00% <70.00%> (ø)` | |
   | [.../org/apache/spark/kyuubi/lineage/LineageConf.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL3NwYXJrL2t5dXViaS9saW5lYWdlL0xpbmVhZ2VDb25mLnNjYWxh) | `100.00% <100.00%> (ø)` | |
   | [...ache/spark/kyuubi/lineage/SparkContextHelper.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstbGluZWFnZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL3NwYXJrL2t5dXViaS9saW5lYWdlL1NwYXJrQ29udGV4dEhlbHBlci5zY2FsYQ==) | `100.00% <100.00%> (ø)` | |
   | [...ache/kyuubi/plugin/spark/authz/OperationType.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstYXV0aHovc3JjL21haW4vc2NhbGEvb3JnL2FwYWNoZS9reXV1YmkvcGx1Z2luL3NwYXJrL2F1dGh6L09wZXJhdGlvblR5cGUuc2NhbGE=) | `65.43% <0.00%> (-34.57%)` | :arrow_down: |
   | [.../kyuubi/plugin/spark/authz/PrivilegesBuilder.scala](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/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-ZXh0ZW5zaW9ucy9zcGFyay9reXV1Ymktc3BhcmstYXV0aHovc3JjL21haW4vc2NhbGEvb3JnL2FwYWNoZS9reXV1YmkvcGx1Z2luL3NwYXJrL2F1dGh6L1ByaXZpbGVnZXNCdWlsZGVyLnNjYWxh) | `71.15% <0.00%> (-18.48%)` | :arrow_down: |
   | ... and [38 more](https://codecov.io/gh/apache/incubator-kyuubi/pull/3919/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :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] [kyuubi] pan3793 commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#issuecomment-1475241068

   @wForget could u please rebase this PR on master?


-- 
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] wForget commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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

   seem to be unrelated failures
   
   ```
   KyuubiOperationPerUserSuite:
   - the new client should work properly when the engine exits unexpectedly *** FAILED ***
     org.apache.thrift.protocol.TProtocolException: Required field 'operationHandle' is unset! Struct:TGetOperationStatusReq(operationHandle:null)
     at org.apache.hive.service.rpc.thrift.TGetOperationStatusReq.validate(TGetOperationStatusReq.java:373)
     at org.apache.hive.service.rpc.thrift.TCLIService$GetOperationStatus_args.validate(TCLIService.java:12851)
     at org.apache.hive.service.rpc.thrift.TCLIService$GetOperationStatus_args$GetOperationStatus_argsStandardScheme.write(TCLIService.java:12908)
     at org.apache.hive.service.rpc.thrift.TCLIService$GetOperationStatus_args$GetOperationStatus_argsStandardScheme.write(TCLIService.java:12877)
     at org.apache.hive.service.rpc.thrift.TCLIService$GetOperationStatus_args.write(TCLIService.java:12828)
     at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:71)
     at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62)
     at org.apache.hive.service.rpc.thrift.TCLIService$Client.send_GetOperationStatus(TCLIService.java:469)
     at org.apache.hive.service.rpc.thrift.TCLIService$Client.GetOperationStatus(TCLIService.java:461)
     at org.apache.kyuubi.operation.HiveJDBCTestHelper.waitForOperationToComplete(HiveJDBCTestHelper.scala:116)
     ...
     
   KyuubiOperationPerUserSuite:
   - transfer connection url when opening connection *** FAILED ***
     org.apache.kyuubi.jdbc.hive.KyuubiSQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:42075/;: org.apache.kyuubi.KyuubiSQLException: Error operating LaunchEngine: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
   	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
   	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
   	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
   	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createTProtocol(KyuubiSyncThriftClient.scala:438)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createClient(KyuubiSyncThriftClient.scala:454)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1(KyuubiSessionImpl.scala:154)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1$adapted(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.openEngineSession(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:60)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: java.net.SocketException: Connection reset
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
   	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
   	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
   	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
   	... 16 more
   
   	at org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:69)
   	at org.apache.kyuubi.operation.KyuubiOperation$$anonfun$onError$1.applyOrElse(KyuubiOperation.scala:75)
   	at org.apache.kyuubi.operation.KyuubiOperation$$anonfun$onError$1.applyOrElse(KyuubiOperation.scala:56)
   	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:62)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
   	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
   	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
   	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
   	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createTProtocol(KyuubiSyncThriftClient.scala:438)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createClient(KyuubiSyncThriftClient.scala:454)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1(KyuubiSessionImpl.scala:154)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1$adapted(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.openEngineSession(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:60)
   	... 5 more
   Caused by: java.net.SocketException: Connection reset
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
   	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
   	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
   	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
   	... 16 more
     at org.apache.kyuubi.jdbc.hive.KyuubiConnection.<init>(KyuubiConnection.java:236)
     at org.apache.kyuubi.jdbc.KyuubiHiveDriver.connect(KyuubiHiveDriver.java:57)
     at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
     at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
     at org.apache.kyuubi.operation.JDBCTestHelper.$anonfun$withMultipleConnectionJdbcStatement$1(JDBCTestHelper.scala:56)
     at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
     at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
     at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
     at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
     at scala.collection.TraversableLike.map(TraversableLike.scala:286)
     ...
     Cause: org.apache.kyuubi.jdbc.hive.KyuubiSQLException: org.apache.kyuubi.KyuubiSQLException: Error operating LaunchEngine: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
   	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
   	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
   	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
   	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createTProtocol(KyuubiSyncThriftClient.scala:438)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createClient(KyuubiSyncThriftClient.scala:454)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1(KyuubiSessionImpl.scala:154)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1$adapted(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.openEngineSession(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:60)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: java.net.SocketException: Connection reset
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
   	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
   	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
   	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
   	... 16 more
   
   	at org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:69)
   	at org.apache.kyuubi.operation.KyuubiOperation$$anonfun$onError$1.applyOrElse(KyuubiOperation.scala:75)
   	at org.apache.kyuubi.operation.KyuubiOperation$$anonfun$onError$1.applyOrElse(KyuubiOperation.scala:56)
   	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:62)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
   	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
   	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
   	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
   	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createTProtocol(KyuubiSyncThriftClient.scala:438)
   	at org.apache.kyuubi.client.KyuubiSyncThriftClient$.createClient(KyuubiSyncThriftClient.scala:454)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1(KyuubiSessionImpl.scala:154)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.$anonfun$openEngineSession$1$adapted(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
   	at org.apache.kyuubi.session.KyuubiSessionImpl.openEngineSession(KyuubiSessionImpl.scala:123)
   	at org.apache.kyuubi.operation.LaunchEngine.$anonfun$runInternal$2(LaunchEngine.scala:60)
   	... 5 more
   Caused by: java.net.SocketException: Connection reset
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
   	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
   	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
   	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
   	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
   	... 16 more
     at org.apache.kyuubi.jdbc.hive.KyuubiConnection.waitLaunchEngineToComplete(KyuubiConnection.java:1325)
     at org.apache.kyuubi.jdbc.hive.KyuubiConnection.<init>(KyuubiConnection.java:201)
     at org.apache.kyuubi.jdbc.KyuubiHiveDriver.connect(KyuubiHiveDriver.java:57)
     at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
     at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
     at org.apache.kyuubi.operation.JDBCTestHelper.$anonfun$withMultipleConnectionJdbcStatement$1(JDBCTestHelper.scala:56)
     at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
     at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
     at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
     at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
     ...
   ```


-- 
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] wForget commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "wForget (via GitHub)" <gi...@apache.org>.
wForget commented on code in PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#discussion_r1143337723


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -28,4 +30,12 @@ object LineageConf {
       .booleanConf
       .createWithDefault(false)
 
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   > better to mention this config in lineage docs.
   
   Updated `docs/extensions/engines/spark/lineage.md`



-- 
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] ulysses-you commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on code in PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#discussion_r1141672391


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -28,4 +30,12 @@ object LineageConf {
       .booleanConf
       .createWithDefault(false)
 
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   please add .doc and .version



-- 
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] wForget commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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

   cc @iodone 


-- 
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] wForget commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -0,0 +1,34 @@
+/*
+ * 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.spark.kyuubi.lineage
+
+import org.apache.spark.internal.config.ConfigBuilder
+
+import org.apache.kyuubi.plugin.lineage.LineageDispatcherType
+
+object LineageConf {
+
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   > can we put the definition of LineageDispatcherType here?
   
   Let me add a separate LineageDispatcherType class, it seems that other enum classes in kyuubi code are like that.



-- 
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] iodone commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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

   LGTM


-- 
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] wForget commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -0,0 +1,34 @@
+/*
+ * 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.spark.kyuubi.lineage
+
+import org.apache.spark.internal.config.ConfigBuilder
+
+import org.apache.kyuubi.plugin.lineage.LineageDispatcherType
+
+object LineageConf {
+
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   Is it reasonable to use `org.apache.spark.internal.config.ConfigBuilder` build lineage plugin configurations? I did not find a better way.



-- 
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] ulysses-you commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on code in PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#discussion_r1141683723


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -28,4 +30,12 @@ object LineageConf {
       .booleanConf
       .createWithDefault(false)
 
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   better to mention this config in lineage docs.



-- 
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] ulysses-you commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you commented on PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#issuecomment-1478808395

   thanks, merging to master


-- 
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] wForget commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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


##########
extensions/spark/kyuubi-spark-lineage/pom.xml:
##########
@@ -38,15 +38,22 @@
         </dependency>
 
         <dependency>
-            <groupId>commons-collections</groupId>
-            <artifactId>commons-collections</artifactId>
-            <scope>test</scope>
+            <groupId>org.apache.kyuubi</groupId>

Review Comment:
   `kyuubi-events` and `kyuubi-common` dependencies are only used in `KyuubiEventDispatcher`, so we can still use lineage plugin without kyuubi



-- 
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] iodone commented on a diff in pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

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


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/spark/kyuubi/lineage/LineageConf.scala:
##########
@@ -0,0 +1,34 @@
+/*
+ * 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.spark.kyuubi.lineage
+
+import org.apache.spark.internal.config.ConfigBuilder
+
+import org.apache.kyuubi.plugin.lineage.LineageDispatcherType
+
+object LineageConf {
+
+  val DISPATCHERS = ConfigBuilder("spark.kyuubi.plugin.lineage.dispatchers")

Review Comment:
   Refer to other standalone plugin implementations that also use spark internal conf.
   Nit: can we put the definition of LineageDispatcherType 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.

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] ulysses-you closed pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "ulysses-you (via GitHub)" <gi...@apache.org>.
ulysses-you closed pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher
URL: https://github.com/apache/kyuubi/pull/3919


-- 
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 commented on pull request #3919: [KYUUBI #3929] Refactor lineage plugin to add LineageDispatcher

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #3919:
URL: https://github.com/apache/kyuubi/pull/3919#issuecomment-1475539497

   LGTM, cc @yaooqinn @ulysses-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