Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When some users submit kyuubi tasks,like a query sql, "Invalid OperationHandle" appears #6882

Open
3 of 4 tasks
huang-jiajun-tech opened this issue Jan 7, 2025 · 4 comments
Labels
kind:bug This is a clearly a bug priority:major

Comments

@huang-jiajun-tech
Copy link

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

I connect to kyuubi via beeline. When I use a specific user to perform a normal select operation, an "Invalid OperationHandle" error will appear, but it can be submitted normally using other users.

Affects Version(s)

1.8.1

Kyuubi Server Log Output

2025-01-07 13:46:44.955 ERROR KyuubiTBinaryFrontendHandler-Pool: Thread-143 org.apache.kyuubi.server.KyuubiTBinaryFrontendService: Error closing operation: 
org.apache.kyuubi.KyuubiSQLException: Invalid OperationHandle [12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e]
        at org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:70)
        at org.apache.kyuubi.operation.OperationManager.getOperation(OperationManager.scala:107)
        at org.apache.kyuubi.service.AbstractBackendService.closeOperation(AbstractBackendService.scala:192)
        at org.apache.kyuubi.server.KyuubiServer$$anon$1.org$apache$kyuubi$server$BackendServiceMetric$$super$closeOperation(KyuubiServer.scala:171)
        at org.apache.kyuubi.server.BackendServiceMetric.$anonfun$closeOperation$1(BackendServiceMetric.scala:171)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at org.apache.kyuubi.metrics.MetricsSystem$.timerTracing(MetricsSystem.scala:112)
        at org.apache.kyuubi.server.BackendServiceMetric.closeOperation(BackendServiceMetric.scala:171)
        at org.apache.kyuubi.server.BackendServiceMetric.closeOperation$(BackendServiceMetric.scala:169)
        at org.apache.kyuubi.server.KyuubiServer$$anon$1.closeOperation(KyuubiServer.scala:171)
        at org.apache.kyuubi.service.TFrontendService.CloseOperation(TFrontendService.scala:498)
        at org.apache.hive.service.rpc.thrift.TCLIService$Processor$CloseOperation.getResult(TCLIService.java:1797)
        at org.apache.hive.service.rpc.thrift.TCLIService$Processor$CloseOperation.getResult(TCLIService.java:1782)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.kyuubi.service.authentication.TSetIpAddressProcessor.process(TSetIpAddressProcessor.scala:36)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        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)

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

No response

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
  • No. I cannot submit a PR at this time.
@huang-jiajun-tech huang-jiajun-tech added kind:bug This is a clearly a bug priority:major labels Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Hello @huang-jiajun-tech,
Thanks for finding the time to report the issue!
We really appreciate the community's efforts to improve Apache Kyuubi.

@pan3793
Copy link
Member

pan3793 commented Jan 7, 2025

Invalid OperationHandle [12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e]

have you searched the Kyuubi server log to filter out the UUID and analyze the lifecycle of that invalid operation?

@huang-jiajun-tech
Copy link
Author

All I can see in the log is that it keeps printing:
query[12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e] RUNNING_STATE
query[12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e] RUNNING_STATE
query[12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e] RUNNING_STATE
query[12c8a2d4-852e-4ddd-b0a0-1215a3bc4c1e] RUNNING_STATE

But actually my Kyuubi server is idle.

@pan3793
Copy link
Member

pan3793 commented Jan 7, 2025

The trivial logs and rough descriptions you provided are not sufficient to analyze the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug priority:major
Projects
None yet
Development

No branches or pull requests

2 participants