未验证 提交 04308607 编写于 作者: H Heng Du 提交者: GitHub

Merge pull request #2936 from yuz10/develop3

[ISSUE #2935] check kv config should not be null. otherwise broker may fail to start
......@@ -140,6 +140,11 @@ public class DefaultRequestProcessor extends AsyncNettyRequestProcessor implemen
final PutKVConfigRequestHeader requestHeader =
(PutKVConfigRequestHeader) request.decodeCommandCustomHeader(PutKVConfigRequestHeader.class);
if (requestHeader.getNamespace() == null || requestHeader.getKey() == null) {
response.setCode(ResponseCode.SYSTEM_ERROR);
response.setRemark("namespace or key is null");
return response;
}
this.namesrvController.getKvConfigManager().putKVConfig(
requestHeader.getNamespace(),
requestHeader.getKey(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册