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

the problem of use HintShardingStrategy in version 4.0.1 #209

@xinghh100-githhub

Description

@xinghh100-githhub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions