shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Show error message when altering sharding configuration if scaling is not enabled

Open sandynz opened this issue 4 years ago • 3 comments

Feature Request

Currently, if scaling is not enabled, alter sharding configuration will take effect immediately, e.g. ALTER SHARDING ALGORITHM, ALTER SHARDING TABLE RULE. Though sharding configuration is altered immediately, but the underlying data is not scaled, in fact it cause issue. So we'll improve it.

Is your feature request related to a problem?

Yes

Describe the feature you would like.

If scaling is not enabled, show error message to user when altering sharding configuration.

sandynz avatar Jan 12 '22 13:01 sandynz

Refer to following java classes methods for more details:

  • RuleDefinitionBackendHandler.execute
  • RuleAlteredJobWorker.isOnRuleAlteredActionEnabled

Refer to Sharding Rule Definition DistSQL for more details.

sandynz avatar Jan 12 '22 13:01 sandynz

can i take it?,Thanks

ReyYang avatar Jan 13 '22 01:01 ReyYang

can i take it?,Thanks

Welcome. Assigned to you.

sandynz avatar Jan 13 '22 02:01 sandynz