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/21 03:22:54 UTC

[GitHub] [shardingsphere] peilinqian opened a new issue, #18475: when use SQL excute 'close all' ,Showing unexpected results,Closing all cursor functions is not supported

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

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   we find java version: java8, full_version=1.8.0_282
   ShardingSphere-5.1.2-SNAPSHOT
   Commit ID: https://github.com/apache/shardingsphere/commit/952c1feacb26bc03ea4ea14d9f82b0d5777732c2
   Commit Message: Update shasum arguments in Release documents (https://github.com/apache/shardingsphere/pull/18344)
   Branch: master
   Build time: 2022-06-13T19:07:26+0000
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   successfully closed
   
   ### Actual behavior
   Failed to close
   
   
   ```
   sharding_db=> close all;
   ERROR:  java.lang.NullPointerException
   ```
   ```
   [ERROR] 2022-06-21 11:18:28.841 [Connection-1151-ThreadExecutor] o.a.s.p.f.c.CommandExecutorTask - Exception occur:
   java.lang.NullPointerException: null
           at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.prepareCursorStatementContext(SchemaAssignedDatabaseBackendHandler.java:94)
           at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.prepareDatabaseCommunicationEngine(SchemaAssignedDatabaseBackendHandler.java:88)
           at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:62)
           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)
   ```
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   ```
   drop table if exists cur_test_01;
   create table cur_test_01(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20));
   insert into cur_test_01 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(2,368,'Bob','Shanghai','AAAAACAAAAA'),
                              (3,59,'Cathy','Shenzhen','AAAAADAAAAA'),(4,96,'David','Suzhou','AAAAAEAAAAA'),
                              (5,17,'Edrwd','Fenghuang','AAAAAFAAAAA'),(6,253,'Fendi','Changsha','AAAAAGAAAAA');
   
   
   start transaction;
   cursor cursor1 for select * from cur_test_01 order by 1;
   cursor cursor2 for select * from cur_test_01 where c_id >=5  order by 1;
   fetch forward from cursor1;
   fetch forward from cursor2;
   close all;
   end;
   ```
   ### 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] tristaZero closed issue #18475: Closing all cursor functions is not supported,When use SQL excute 'close all' ,Showing unexpected results

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #18475: Closing all cursor functions is not supported,When use SQL excute 'close all' ,Showing unexpected results
URL: https://github.com/apache/shardingsphere/issues/18475


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