ycl2045 opened a new issue, #7216: URL: https://github.com/apache/rocketmq/issues/7216
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment maxos, linux ### RocketMQ version 4.9.7一下版本 ### JDK Version 1.8.0 ### Describe the Bug 更新brokerPermission参数之后 把内存的参数都写入了配置文件了 ### Steps to Reproduce 更新之前的conf文件内容 ``` # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. brokerClusterName = DefaultCluster brokerName = broker-a brokerId = 0 deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH ``` 执行更新命令 ./bin/mqadmin updatebrokerconfig -n namesrv:9876 -b 3f5ca737fb49:10911 -k brokerPermission -v 4 配置文件多出很多内容 ``` ... deleteWhen=04 bitMapLengthConsumeQueueExt=112 fastFailIfNoBufferInStorePool=false enableMultiDispatch=false defaultTopicQueueNums=8 flushConsumeQueueThoroughInterval=60000 notifyConsumerIdsChangedEnable=true fileReservedTime=48 brokerPermission=4 transferMsgByHeap=true pullThreadPoolQueueCapacity=100000 brokerId=0 maxTransferCountOnMessageInDisk=8 ``` ### What Did You Expect to See? 更新brokerPermission参数,只添加brokerPermission本身的kv值 ### What Did You See Instead? 配置文件写入了过多的默认参数值 ### Additional Context _No response_ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
