shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

DistSQL about ENCRYPT RULE can not work, need recode

Open hhw3KevinHou opened this issue 1 year ago • 4 comments

Bug Report

CREATE/alter/drop/show ENCRYPT RULE are all wrong output. Some result wrong, Some persist wrong. Author need recode DistSQL.

Which version of ShardingSphere did you use?

5.4.1 with Mysql repository.

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

Like SQL insert ,update ,delete behavior.

Actual behavior

CREATE/alter/drop/show ENCRYPT RULE are all wrong. Some result error, Some persist error. Author need recode DistSQL.

Metadata in memory and Mysql are not consist.

I have cost a whole week to confirm this.

hhw3KevinHou avatar Dec 22 '23 11:12 hhw3KevinHou

Can you describe your detail operation?

zhaojinchao95 avatar Dec 24 '23 09:12 zhaojinchao95

Can you describe your detail operation?

Create ENCRYPT RULE bug see https://github.com/apache/shardingsphere/issues/29431. Alter bug: alter a encrypte rule->restart->alter no effect. Drop bug: drop a rule -> show ENCRYPT RULE -> other rules are all dropped (reason is rules.removeIf(each -> each.getConfiguration().getClass().isAssignableFrom(ruleConfig.getClass()));)

hhw3KevinHou avatar Dec 29 '23 01:12 hhw3KevinHou

@hhw3KevinHou Hi, are you test with standalone mode, and the persist repository is MySQL?

RaigorJiang avatar Jan 07 '24 02:01 RaigorJiang

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar Feb 06 '24 20:02 github-actions[bot]