You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/08 03:23:08 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue, #18234: NoSuchElementException occurs when execute `PREVIEW FETCH 2 FROM "t_order_cursor"`

strongduanmu opened a new issue, #18234:
URL: https://github.com/apache/shardingsphere/issues/18234

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   https://github.com/apache/shardingsphere/commit/72b683cc3d431452b0e645f5bfcfa2f9480e65f2
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Show preview result of `PREVIEW FETCH 2 FROM "t_order_cursor"` statement.
   
   ### Actual behavior
   
   ```
   [ERROR] 2022-06-08 10:09:57.017 [Connection-7-ThreadExecutor] o.a.s.p.f.c.CommandExecutorTask - Exception occur: 
   java.util.NoSuchElementException: null
   	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1447)
   	at java.util.HashMap$KeyIterator.next(HashMap.java:1469)
   	at org.apache.shardingsphere.sharding.route.engine.type.ShardingRouteEngineFactory.getDDLRoutingEngine(ShardingRouteEngineFactory.java:124)
   	at org.apache.shardingsphere.sharding.route.engine.type.ShardingRouteEngineFactory.newInstance(ShardingRouteEngineFactory.java:94)
   	at org.apache.shardingsphere.sharding.route.engine.ShardingSQLRouter.createRouteContext(ShardingSQLRouter.java:57)
   	at org.apache.shardingsphere.sharding.route.engine.ShardingSQLRouter.createRouteContext(ShardingSQLRouter.java:45)
   	at org.apache.shardingsphere.infra.route.engine.impl.PartialSQLRouteExecutor.route(PartialSQLRouteExecutor.java:68)
   	at org.apache.shardingsphere.infra.route.engine.SQLRouteEngine.route(SQLRouteEngine.java:53)
   	at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.route(KernelProcessor.java:54)
   	at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.generateExecutionContext(KernelProcessor.java:46)
   	at org.apache.shardingsphere.proxy.backend.text.distsql.ral.advanced.PreviewDistSQLBackendHandler.getRows(PreviewDistSQLBackendHandler.java:115)
   	at org.apache.shardingsphere.proxy.backend.text.distsql.ral.QueryableRALBackendHandler.handle(QueryableRALBackendHandler.java:49)
   	at org.apache.shardingsphere.proxy.backend.text.distsql.ral.RALBackendHandler.execute(RALBackendHandler.java:47)
   	at org.apache.shardingsphere.proxy.frontend.opengauss.command.query.simple.OpenGaussComQueryExecutor.execute(OpenGaussComQueryExecutor.java:76)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:107)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   [INFO ] 2022-06-08 10:20:25.112 [HikariPool-4 connection adder] o.o.core.v3.ConnectionFactoryImpl - [2bc6ae6a-8910-4009-b353-b2b961cbb53c] Try to connect. IP: localhost:15432
   [INFO ] 2022-06-08 10:20:25.137 [HikariPool-4 connection adder] o.o.core.v3.ConnectionFactoryImpl - [127.0.0.1:53892/ocalhost/127.0.0.1:15432] Connection is established. ID: 2bc6ae6a-8910-4009-b353-b2b961cbb53c
   ```
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


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

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


[GitHub] [shardingsphere] tuichenchuxin closed issue #18234: NoSuchElementException occurs when execute `PREVIEW FETCH 2 FROM "t_order_cursor"`

Posted by GitBox <gi...@apache.org>.
tuichenchuxin closed issue #18234: NoSuchElementException occurs when execute `PREVIEW FETCH 2 FROM "t_order_cursor"`
URL: https://github.com/apache/shardingsphere/issues/18234


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

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