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 2023/01/01 03:17:33 UTC

[GitHub] [shardingsphere] maziqiang12138 opened a new issue, #23237: WeightReplicaLoadBalanceAlgorithm props init fail

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

   project start error log 
   Caused by: java.lang.IllegalStateException: Readwrite-splitting data source weight config are required in database `logic_db`.
   
   yaml:
   `    rules:
         readwrite-splitting:
           data-sources:
             test:
               static-strategy:
                 write-data-source-name: master
                 read-data-source-names: slave1,slave2
               load-balancer-name: customWeight
           load-balancers:
             customWeight:
               type: WEIGHT
               props:
                 slave1: 7
                 slave2: 3`
   same yaml my test demo can start success


-- 
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] jiangML commented on issue #23237: WeightReplicaLoadBalanceAlgorithm props init fail

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

   As described in the exception, can you try to configure the `data-sources` as logic_db?


-- 
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 closed issue #23237: WeightReplicaLoadBalanceAlgorithm props init fail

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #23237: WeightReplicaLoadBalanceAlgorithm props init fail
URL: https://github.com/apache/shardingsphere/issues/23237


-- 
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 #23237: WeightReplicaLoadBalanceAlgorithm props init fail

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

   Closed due to no response.


-- 
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 #23237: WeightReplicaLoadBalanceAlgorithm props init fail

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

   Hi @maziqiang12138 , please provide your ShardingSphere version and rule configuration, thank you!


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