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 2019/06/11 02:18:06 UTC

[GitHub] [incubator-shardingsphere] xiaotianlongxing opened a new issue #2531: Modify configuration from zookeeper invalid

xiaotianlongxing opened a new issue #2531: Modify configuration from zookeeper invalid
URL: https://github.com/apache/incubator-shardingsphere/issues/2531
 
 
   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/sharding-sphere/sharding-sphere/issues).
   - Read documentation: [ShardingSphere Doc](http://shardingsphere.io/document/current/en/overview/).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response **more than 7 days** and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   sharding-jdbc-core-4.0.0-RC1   
   sharding-jdbc-spring-namespace-4.0.0-RC1
   sharding-jdbc-orchestration-spring-namespace-4.0.0-RC1
   sharding-orchestration-reg-zookeeper-curator-4.0.0-RC1
   
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   Sharding-JDBC
   
   ### Expected behavior
   I want to Modify actual-data-nodes from zookeeper
   
   ### Actual behavior
   not used,my zookeeper version is 3.5.5,and i try the version 3.4.13 too
   
   ### Reason analyze (If you can)
   I modify configuration from zk,No error in the process,and i sure my sharding-jdbc has received it.but the actual-data-nodes not used when i query
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
       <orchestraion:registry-center id="regCenter" type="zookeeper" server-lists="localhost:2182" namespace="pay-sharding-orchestration" operation-timeout-milliseconds="1000" max-retries="3" />
       <orchestraion:sharding-data-source id="shardingOrchestration" data-source-ref="shardingDataSource" registry-center-ref="regCenter" />
   	<!--按月动态分表,每月自动修改actual-data-nodes,只查询最近两个月数据 -->
    	<bean id="tableShardingAlgorithmByMonth" class="com.yobit.business.utils.sharding.TableShardingAlgorithmByMonth"></bean>
     	<sharding:standard-strategy id="payOrderPreciseAlgorithm" sharding-column="create_date" precise-algorithm-ref="tableShardingAlgorithmByMonth"></sharding:standard-strategy>
       <sharding:data-source id="shardingDataSource">
           <sharding:sharding-rule data-source-names="dataSource">
               <sharding:table-rules>
   		<!--采用Groovy表达式配置事实表,按年归档和并添加新表 -->
               	<sharding:table-rule logic-table="pay_order" actual-data-nodes="dataSource.pay_order_20190$->{5..6}" table-strategy-ref="payOrderPreciseAlgorithm"  />
               </sharding:table-rules>
               <sharding:binding-table-rules>
                   <sharding:binding-table-rule logic-tables="pay_order"/>
               </sharding:binding-table-rules>
           </sharding:sharding-rule>
           <sharding:props>
               <prop key="sql.show">true</prop>
           </sharding:props>
       </sharding:data-source>
   
   ### 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services