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/08/25 08:21:26 UTC

[GitHub] [shardingsphere] Qianyi951015 opened a new issue, #20513: Cannot add resources after discovery rules created

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

   ## Bug Report
   
   
   ### Which version of ShardingSphere did you use?
   master 6cf1f1e8352d7be5c501a5626ef44e708a5b0d2b
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   ### Expected behavior
    ADD RESOURCE success.
   ### Actual behavior
   Got an exception and ADD RESOURCE failed.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   1. Add resources `ds_0`, `ds_1`, `ds_2`.
   ```
   add resource 
   ds_0(url="jdbc:mysql://xxx.xx.xx.xx:33306/primary_demo_ds?serverTimezone=UTC&useSSL=false", user="root",password="xxxxxx"), 
   ds_1(url="jdbc:mysql://xxx.xx.xx.xx:33307/primary_demo_ds?serverTimezone=UTC&useSSL=false", user="root",password="xxxxxx"),
   ds_2(url="jdbc:mysql://xxx.xx.xx.xx:33308/primary_demo_ds?serverTimezone=UTC&useSSL=false", user="root",password="xxxxxx");
   ```
   2. Create database discover rule `group0`.
   ```
   CREATE DB_DISCOVERY RULE group_0 ( RESOURCES(ds_0, ds_1, ds_2), TYPE(NAME='MySQL.MGR',PROPERTIES('group-name'='558edd3c-02ec-11ea-9bb3-080027e39bd2')), HEARTBEAT(PROPERTIES('keep-alive-cron'='0/5 * * * * ?')) );
   ```
   3. Add resource `resource_0`.
   ```
   ADD RESOURCE resource_0 (
       HOST="127.0.0.1",
       PORT=3306,
       DB="db0",
       USER="root",
       PASSWORD="123456"
   );
   ```
   
   
   ### Log
   ```
   ERROR 1999 (42000): Unknown exception: java.lang.NullPointerException
   ```


-- 
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] strongduanmu commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1275435446

   Hi @RaigorJiang , could we finish this issue in 5.2.1?


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


[GitHub] [shardingsphere] github-actions[bot] closed issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #20513: Cannot add resources after discovery rules created
URL: https://github.com/apache/shardingsphere/issues/20513


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


[GitHub] [shardingsphere] RaigorJiang commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1229677428

   > I will move this issue to `5.2.1`.
   
   OK, thank you @strongduanmu 


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


[GitHub] [shardingsphere] Qianyi951015 commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
Qianyi951015 commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1275996193

   I also can not reproduce it now. Maybe already been solved by someone. 


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


[GitHub] [shardingsphere] strongduanmu commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1229628378

   I will move this issue to `5.2.1`.


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


[GitHub] [shardingsphere] strongduanmu commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1229610822

   Hi @Qianyi951015 @RaigorJiang , can we finish this issue in `5.1.3`?


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


[GitHub] [shardingsphere] RaigorJiang commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1275854687

   <img width="1213" alt="image" src="https://user-images.githubusercontent.com/5668787/195303442-5818af01-72df-4885-bd80-003c7e7bdede.png">
   
   Hi @Qianyi951015  I can't reproduce the problem, can you reproduce it?


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


[GitHub] [shardingsphere] github-actions[bot] commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1272348713

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


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


[GitHub] [shardingsphere] Qianyi951015 closed issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
Qianyi951015 closed issue #20513: Cannot add resources after discovery rules created
URL: https://github.com/apache/shardingsphere/issues/20513


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


[GitHub] [shardingsphere] RaigorJiang commented on issue #20513: Cannot add resources after discovery rules created

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #20513:
URL: https://github.com/apache/shardingsphere/issues/20513#issuecomment-1275522879

   > Hi @RaigorJiang , could we finish this issue in 5.2.1?
   
   Let me check it.


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