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 2020/06/28 08:23:05 UTC

[GitHub] [shardingsphere] menghaoranss opened a new issue #6196: The attribute overwrite of tag is never parsed

menghaoranss opened a new issue #6196:
URL: https://github.com/apache/shardingsphere/issues/6196


   ## Question
   
   The attribute `overwrite`  that defined in `shardingsphere-jdbc-orchestration-spring-namespace\src\main\resources\META-INF\namespace\orchestration.xsd` is never parsed .
   
   ```
   <xsd:element name="data-source">
           <xsd:complexType>
               <xsd:attribute name="id" type="xsd:string" use="required" />
               <xsd:attribute name="data-source-ref" type="xsd:string" />
               <xsd:attribute name="instance-ref" type="xsd:string" use="required" />
               <xsd:attribute name="overwrite" type="xsd:string" default="false" />
               <xsd:attribute name="cluster-ref" type="xsd:string"/>
           </xsd:complexType>
       </xsd:element>
   ```
   
   And `ShardingOrchestrationFacade` just use the  `overwrite` defined in `<orchestration:instance>` as below to judge whether to overwrite with local configurations,  so the `overwrite` defined in `<orchestration:datasource>`  should be removed.
   
   ```
   <orchestration:instance id="regCenter1" orchestration-type="registry_center,config_center,metadata_center" instance-type="zookeeper" server-lists="localhost:2181" namespace="orchestration-spring-namespace-demo">
           <props>
               <prop key="overwrite">true</prop>
           </props>
       </orchestration:instance>
   ```


----------------------------------------------------------------
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] kimmking closed issue #6196: The attribute overwrite of tag is never parsed

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


   


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