You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/08/02 09:21:58 UTC
[GitHub] [shardingsphere] sandynz opened a new issue, #19803: Global properties of server.yaml will be cleaned in registry center after executing SET VARIABLE statement
sandynz opened a new issue, #19803:
URL: https://github.com/apache/shardingsphere/issues/19803
## Bug Report
### Which version of ShardingSphere did you use?
master branch, fbbc52c149e1f146803fb829670188c195cb3b20
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
Proxy
### Expected behavior
global properties of server.yaml won't be removed in registry center after executing `SET VARIABLE ...`
### Actual behavior
Initial `props` value:
```
proxy-frontend-flush-threshold: 128
proxy-frontend-executor-size: 0
proxy-frontend-max-connections: 0
proxy-mysql-default-version: 5.7.22
proxy-backend-driver-type: JDBC
proxy-backend-query-fetch-size: -1
kernel-executor-size: 16
proxy-netty-backlog: 1024
proxy-default-port: 3307
proxy-backend-executor-suitable: OLAP
proxy-hint-enabled: false
sql-show: false
sql-federation-enabled: false
max-connections-size-per-query: 1
check-table-metadata-enabled: false
```
After executing `SET VARIABLE sql_show = true;`
`props` value is:
```
sql-show: true
```
### Reason analyze (If you can)
<img width="1351" alt="图片" src="https://user-images.githubusercontent.com/42492540/182338663-aa2c39f2-26ba-433e-8465-c181100b4f03.png">
In fact, `metaDataContexts.getMetaData().getProps().getProps()` has 15 properties, but `new Properties(metaDataContexts.getMetaData().getProps().getProps())` has 0 properties, since the Properties constructor parameter is defaults:
```
public Properties(Properties defaults) {
this.defaults = defaults;
}
```
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
1, Start proxy.
2, Login proxy and run `SET VARIABLE sql_show = true;`
3, Check `props` in registry center.
### Example codes for reproduce this issue (such as a github link).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu closed issue #19803: Global properties of server.yaml will be cleaned in registry center after executing SET VARIABLE statement
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #19803: Global properties of server.yaml will be cleaned in registry center after executing SET VARIABLE statement
URL: https://github.com/apache/shardingsphere/issues/19803
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org