mwylaoma commented on issue #2592: Sharding-Proxing change database error URL: https://github.com/apache/incubator-shardingsphere/issues/2592#issuecomment-504946065 `[INFO ] 17:55:33.659 [ShardingSphere-Command-1] ShardingSphere-SQL - Actual SQL: cloud_1 ::: /* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation [INFO ] 17:55:36.664 [ShardingSphere-Command-7] ShardingSphere-SQL - Rule Type: sharding [INFO ] 17:55:36.664 [ShardingSphere-Command-7] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation [INFO ] 17:55:36.665 [ShardingSphere-Command-7] ShardingSphere-SQL - SQLStatement: SelectStatement(super=DMLStatement(super=AbstractSQLStatement(sqlSegments=[org.apache.shardingsphere.core.parse.sql.segment.dml.SelectItemsSegment@744e7a7d, org.apache.shardingsphere.core.parse.sql.segment.dml.WhereSegment@3ea2a174, org.apache.shardingsphere.core.parse.sql.segment.dml.predicate.SubqueryPredicateSegment@429fb7a], tables=Tables(tables=[]), logicSQL=/* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation, parametersCount=0), shardingConditions=Conditions(orConditions=[]), encryptConditions=Conditions(orConditions=[])), items=[CommonSelectItem(expression=@@session.tx_isolation, alias=Optional.absent())], groupByItems=[], orderByItems=[], toAppendOrderByItems=false, containStar=false, containsSubquery=false, firstSelectItemStartIndex=0, selectListStopIndex=68, groupByLastIndex=0, offset=null, rowCount=null, subqueryStatement=null, subqueryShardingConditions=[]) [INFO ] 17:55:36.665 [ShardingSphere-Command-7] ShardingSphere-SQL - Actual SQL: cloud_0 ::: /* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation [INFO ] 17:55:38.718 [ShardingSphere-Command-3] ShardingSphere-SQL - Rule Type: sharding [INFO ] 17:55:38.718 [ShardingSphere-Command-3] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation [INFO ] 17:55:38.718 [ShardingSphere-Command-3] ShardingSphere-SQL - SQLStatement: SelectStatement(super=DMLStatement(super=AbstractSQLStatement(sqlSegments=[org.apache.shardingsphere.core.parse.sql.segment.dml.SelectItemsSegment@51fc25f8, org.apache.shardingsphere.core.parse.sql.segment.dml.WhereSegment@c883e0c, org.apache.shardingsphere.core.parse.sql.segment.dml.predicate.SubqueryPredicateSegment@741508c5], tables=Tables(tables=[]), logicSQL=/* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation, parametersCount=0), shardingConditions=Conditions(orConditions=[]), encryptConditions=Conditions(orConditions=[])), items=[CommonSelectItem(expression=@@session.tx_isolation, alias=Optional.absent())], groupByItems=[], orderByItems=[], toAppendOrderByItems=false, containStar=false, containsSubquery=false, firstSelectItemStartIndex=0, selectListStopIndex=68, groupByLastIndex=0, offset=null, rowCount=null, subqueryStatement=null, subqueryShardingConditions=[]) [INFO ] 17:55:38.718 [ShardingSphere-Command-3] ShardingSphere-SQL - Actual SQL: cloud_0 ::: /* ApplicationName=DataGrip 2019.1.2 */ SELECT @@session.tx_isolation [INFO ] 17:55:38.728 [ShardingSphere-Command-4] ShardingSphere-SQL - Rule Type: sharding [INFO ] 17:55:38.728 [ShardingSphere-Command-4] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS [INFO ] 17:55:38.728 [ShardingSphere-Command-4] ShardingSphere-SQL - SQLStatement: ShowOtherStatement(super=DALStatement(super=AbstractSQLStatement(sqlSegments=[], tables=Tables(tables=[]), logicSQL=/* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS, parametersCount=0))) [INFO ] 17:55:38.728 [ShardingSphere-Command-4] ShardingSphere-SQL - Actual SQL: cloud_0 ::: /* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS [INFO ] 17:55:38.731 [ShardingSphere-Command-5] ShardingSphere-SQL - Rule Type: sharding [INFO ] 17:55:38.732 [ShardingSphere-Command-5] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2019.1.2 */ SET net_write_timeout=600 [INFO ] 17:55:38.732 [ShardingSphere-Command-5] ShardingSphere-SQL - SQLStatement: SetStatement(super=DALStatement(super=AbstractSQLStatement(sqlSegments=[], tables=Tables(tables=[]), logicSQL=/* ApplicationName=DataGrip 2019.1.2 */ SET net_write_timeout=600, parametersCount=0))) [INFO ] 17:55:38.732 [ShardingSphere-Command-5] ShardingSphere-SQL - Actual SQL: cloud_0 ::: /* ApplicationName=DataGrip 2019.1.2 */ SET net_write_timeout=600 [ERROR] 17:55:38.733 [ShardingSphere-Command-6] o.a.s.s.f.c.CommandExecutorTask - Exception occur: java.lang.NullPointerException: null at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964) at java.util.concurrent.ConcurrentHashMap$KeySetView.contains(ConcurrentHashMap.java:4558) at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.schemaExists(LogicSchemas.java:138) at org.apache.shardingsphere.shardingproxy.backend.text.admin.UseDatabaseBackendHandler.execute(UseDatabaseBackendHandler.java:51) at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:72) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66) 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 ] 17:55:38.736 [ShardingSphere-Command-7] ShardingSphere-SQL - Rule Type: sharding [INFO ] 17:55:38.736 [ShardingSphere-Command-7] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS [INFO ] 17:55:38.736 [ShardingSphere-Command-7] ShardingSphere-SQL - SQLStatement: ShowOtherStatement(super=DALStatement(super=AbstractSQLStatement(sqlSegments=[], tables=Tables(tables=[]), logicSQL=/* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS, parametersCount=0))) [INFO ] 17:55:38.736 [ShardingSphere-Command-7] ShardingSphere-SQL - Actual SQL: cloud_0 ::: /* ApplicationName=DataGrip 2019.1.2 */ SHOW WARNINGS [INFO ] 17:55:38.740 [ShardingSphere-Command-0] ShardingSphere-SQL - Rule Type: sharding` This is my current log
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
