Skip to content
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.

the problem of use HintShardingStrategy in version 4.0.1 #209

Open
xinghh100-githhub opened this issue Apr 29, 2020 · 0 comments
Open

the problem of use HintShardingStrategy in version 4.0.1 #209

xinghh100-githhub opened this issue Apr 29, 2020 · 0 comments

Comments

@xinghh100-githhub
Copy link

When I use HintShardingStrategy in version 4.0.1, I actually return to UnicastRoutingEngine after executing RoutingEngineFactory#newInstance, this problem does not exist in 4.0.0-RC2.

The code usage example is as follows:

// config sharding rule
ShardingRuleConfiguration shardingRuleConfig = new ShardingRuleConfiguration();
shardingRuleConfig.setDefaultDatabaseShardingStrategyConfig(
new HintShardingStrategyConfiguration(new MyShardingAlgorithm())
);
shardingRuleConfig.setDefaultTableShardingStrategyConfig(
new NoneShardingStrategyConfiguration()
);

// use hint
hintManager.setDatabaseShardingValue (db);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant