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 06:09:14 UTC
[GitHub] [incubator-shardingsphere] zhang98722 opened a new pull request
#2533: add config to check actual data node in runtime or not
zhang98722 opened a new pull request #2533: add config to check actual data node in runtime or not
URL: https://github.com/apache/incubator-shardingsphere/pull/2533
in some case there is lots of table need to add in run time
and cant save them to the config or somewhere before sharding sphere init
in v4.0.0 if you insert data to a new table not configured in table rule actual data node
sharding sphere wont execute because it will do the check in org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine#removeNonExistNodes, return -1 as the result
so i added a configuration to tell sharding sphere not check the actual data node, just execute the sql,and throw exception if it involved
Changes proposed in this pull request:
- table rule config add property _checkActualDataNode_
- table rule add perperty _checkActualDataNode_ , default value is true
- org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine#removeNonExistNodes : is not _checkActualDataNode_ then dont execute this remove
----------------------------------------------------------------
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