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 2021/02/24 09:52:28 UTC

[GitHub] [shardingsphere] bestksl opened a new issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

bestksl opened a new issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494


   ![image](https://user-images.githubusercontent.com/43023538/108981577-d0e26700-76c7-11eb-9256-1023d10606cb.png)
   why the exception info is null?
   Why I can't execute commands like create datasources, or sharding rules? , the whole env like zookeeper, mysql , I believe they were well prepared....


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   
   > Hi @bestksl ,
   > 
   > Thanks for the feedback.
   > Two of the images you provided have any sequences?
   > I mean, suppose you only run `create databases`, is there any exception?
   ![image](https://user-images.githubusercontent.com/43023538/109095331-75ab8580-7756-11eb-8efb-a2aab5377240.png)
   emmmm.. . I can create the database normally.
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   @bestksl ,Thanks.
   
   @jingshanglu  Please look at his first image. Suppose a table is created before its `table rule`, it seems an exception will happen.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] menghaoranss commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   Please provide the complete stack logs.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
bestksl edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-785511267


   > Please provide the complete stack logs.
   
   
   ![image](https://user-images.githubusercontent.com/43023538/109089929-139a5280-774d-11eb-8f2c-b7f851f22a48.png)
   
   
   and matadata stored in the zookeeper...
   ![image](https://user-images.githubusercontent.com/43023538/109089872-f36a9380-774c-11eb-84df-61e5304b4352.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] menghaoranss closed issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
menghaoranss closed issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494


   


-- 
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:
users@infra.apache.org



[GitHub] [shardingsphere] jingshanglu edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
jingshanglu edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-787820170


   @bestksl plz refer 
   ```
   CREATE SHARDING RULE (
   t_order [resource(ds0, ds1)] [order_id HASH_MOD("sharding-count"=4)] [generated_key another_id snowflake("worker-id"=123)],
   t_item item_id mod("sharding-count"=2)
   [binding_table(t_order t_item) ...]
   [default_table_strategy HASH_MOD("sharding-count"=4)]
   [broadcast_tables(t_order, t_item)]
   )
   
   ADD RESOURCE (
   primary_ds=127.0.0.1:3306:demo_ds_0:root:pwd,
   replica_ds_0=127.0.0.1:3306:demo_ds_0:root,
   replica_ds_1=127.0.0.1:3306:demo_ds_0:root
   );
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   > Please provide the complete stack logs.
   
   ![image](https://user-images.githubusercontent.com/43023538/109089719-a686bd00-774c-11eb-8438-c888179b7058.png)
   
   and matadata stored in the zookeeper...
   ![image](https://user-images.githubusercontent.com/43023538/109089872-f36a9380-774c-11eb-84df-61e5304b4352.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   Hi bestksl,
   
   Thank you for try to using the dev features. 
   
   `create sharding rule` must before related table created.
   However, NullPointException is not good enough, I will improve the error message reporting.
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   Hi @bestksl ,
   
   Thanks for the feedback. 
   Two of the images you provided have any sequences?
   I mean, suppose you only run `create databases`, is there any exception?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
bestksl edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-787681335


   When I created a shardingrule... 
   ![image](https://user-images.githubusercontent.com/43023538/109459242-63ed1980-7a99-11eb-9c71-63b56fce0955.png)
   Blow is the exception in backend.,
   ![image](https://user-images.githubusercontent.com/43023538/109459143-2ee0c700-7a99-11eb-8d60-151ebc7f60cb.png)
   When I created a datasource....
   ![image](https://user-images.githubusercontent.com/43023538/109459489-d52ccc80-7a99-11eb-9c9a-3ff667605694.png)
   
   ![image](https://user-images.githubusercontent.com/43023538/109459306-82531500-7a99-11eb-82ab-c7a891268b53.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   When I created a datasource... 
   ![image](https://user-images.githubusercontent.com/43023538/109459242-63ed1980-7a99-11eb-9c71-63b56fce0955.png)
   Blow is the exception in backend.,
   ![image](https://user-images.githubusercontent.com/43023538/109459143-2ee0c700-7a99-11eb-8d60-151ebc7f60cb.png)
   When I create a datasource....
   ![image](https://user-images.githubusercontent.com/43023538/109459306-82531500-7a99-11eb-82ab-c7a891268b53.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
bestksl edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-787681335






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] jingshanglu commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   @bestksl plz refer 
   ```
   CREATE SHARDING RULE (
   t_order [resource(ds0, ds1)] [order_id HASH_MOD("sharding-count"=4)] [generated_key another_id snowflake("worker-id"=123)],
   t_item item_id mod("sharding-count"=2)
   [binding_table(t_order t_item) ...]
   [default_table_strategy HASH_MOD("sharding-count"=4)]
   [broadcast_tables(t_order, t_item)]
   )
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] jingshanglu commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   @bestksl `[]`:optional


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] menghaoranss commented on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

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


   RDL has been refactored,please refer #9964
   


-- 
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:
users@infra.apache.org



[GitHub] [shardingsphere] bestksl edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

Posted by GitBox <gi...@apache.org>.
bestksl edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-785511267


   > Please provide the complete stack logs.
   
   
   ![image](https://user-images.githubusercontent.com/43023538/109089929-139a5280-774d-11eb-8f2c-b7f851f22a48.png)
   
   
   and the matadata stored in the zookeeper...
   ![image](https://user-images.githubusercontent.com/43023538/109089872-f36a9380-774c-11eb-84df-61e5304b4352.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org