jt2594838 commented on code in PR #13906:
URL: https://github.com/apache/iotdb/pull/13906#discussion_r1815901969
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java:
##########
@@ -1792,57 +2076,63 @@ private void loadTsFileProps(Properties properties)
throws IOException {
.getConfig()
.setMaxTsBlockLineNumber(
Integer.parseInt(
- properties.getProperty(
- "max_tsblock_line_number",
- ConfigurationFileUtils.getConfigurationDefaultValue(
- "max_tsblock_line_number"))));
+ properties
+ .getProperty(
+ "max_tsblock_line_number",
+ ConfigurationFileUtils.getConfigurationDefaultValue(
+ "max_tsblock_line_number"))
+ .trim()));
}
// Mqtt related
private void loadMqttProps(Properties properties) {
- conf.setMqttDir(properties.getProperty("mqtt_root_dir",
conf.getMqttDir()));
+ conf.setMqttDir(properties.getProperty("mqtt_root_dir",
conf.getMqttDir()).trim());
if (properties.getProperty(IoTDBConstant.MQTT_HOST_NAME) != null) {
- conf.setMqttHost(properties.getProperty(IoTDBConstant.MQTT_HOST_NAME));
+
conf.setMqttHost(properties.getProperty(IoTDBConstant.MQTT_HOST_NAME).trim());
} else {
LOGGER.info("MQTT host is not configured, will use dn_rpc_address.");
conf.setMqttHost(
- properties.getProperty(IoTDBConstant.DN_RPC_ADDRESS,
conf.getRpcAddress().trim()));
+ properties.getProperty(IoTDBConstant.DN_RPC_ADDRESS,
conf.getRpcAddress().trim()).trim());
Review Comment:
Redundant, remove. Check other places for the same issue.
--
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]