You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2023/06/26 03:15:11 UTC
[GitHub] [shardingsphere] strongduanmu opened a new issue, #26563: NPE occurs when execute create database with postgres db
strongduanmu opened a new issue, #26563:
URL: https://github.com/apache/shardingsphere/issues/26563
## Bug Report
### Which version of ShardingSphere did you use?
[e504221](https://github.com/apache/shardingsphere/commit/e504221d857b87744a040fda7cfb493d25a1e855)
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
Execute following sql successfully.
```sql
postgres=> create database test1;
```
### Actual behavior
```
[ERROR] 2023-06-15 20:18:14.421 [pool-8-thread-1] c.g.common.eventbus.EventBus.default - Exception thrown by subscriber method renew(org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.metadata.event.DatabaseAddedEvent) on subscriber org.apache.shardingsphere.mode.manager.cluster.coordinator.subscriber.ResourceMetaDataChangedSubscriber@dd20ebc when dispatching event: org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.metadata.event.DatabaseAddedEvent@753adf4d
java.lang.NullPointerException: null
at org.apache.shardingsphere.sqlfederation.optimizer.context.planner.OptimizerPlannerContextFactory.create(OptimizerPlannerContextFactory.java:79)
at org.apache.shardingsphere.sqlfederation.rule.SQLFederationRule.alterDatabase(SQLFederationRule.java:50)
```
### 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] zhaojinchao95 closed issue #26563: NPE occurs when execute create database with postgres db
Posted by "zhaojinchao95 (via GitHub)" <gi...@apache.org>.
zhaojinchao95 closed issue #26563: NPE occurs when execute create database with postgres db
URL: https://github.com/apache/shardingsphere/issues/26563
--
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