Skip to content

Add new param "ruleFile" in some of the AbstractPartitionAlgorithm #1408

Closed
@sunsun314

Description

Dble would change the config files into JsonString when in cluster-mod. Sometimes the 'mapFile' in AbstractPartitionAlgorithm link to a big file which too big to be transformed into JsonString, which can cause reload/startup failure.
So we decided to provide a new param 'ruleFile' to act like 'mapFile' but would not be transformed into JsonString. AbstractPartitionAlgorithm below would be affected:

  • numberrange/AutoPartitionByLong
  • enum/PartitionByFileMap
  • patternrange/PartitionByPattern

The new param 'ruleFile' would act as below:

  • RuleFile&MapFile can not both be configured
  • When ruleFile configured the AbstractPartitionAlgorithm would calculate the route with file name in ruleFile
  • The file which ruleFile link to would not be transformed into JsonString when cluster reload

Metadata

Assignees

Labels

Improvementdoc-itdiffer with mysql, and let it goresolveproblem has been fixed by developer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions