[docs] Fix spelling of RocketMQ

This commit is contained in:
Jiri Pechanec 2023-03-13 15:10:15 +01:00
parent ee3904dbef
commit 9e7591641a
5 changed files with 19 additions and 17 deletions

View File

@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>debezium-storage-rocketmq</artifactId>
<name>Debezium Storage RocketMq Module</name>
<name>Debezium Storage RocketMQ Module</name>
<packaging>jar</packaging>
<dependencies>
@ -100,4 +100,4 @@
</profile>
</profiles>
</project>
</project>

View File

@ -36,8 +36,10 @@
import org.apache.rocketmq.tools.admin.DefaultMQAdminExt;
import org.apache.rocketmq.tools.command.CommandUtil;
import io.debezium.DebeziumException;
/**
* Tools for creating RocketMq topic and group
* Tools for creating RocketMQ topic and group
*/
public class RocketMqAdminUtil {
@ -116,7 +118,7 @@ public static void createTopic(RocketMqConfig config, TopicConfig topicConfig) {
}
}
catch (Exception e) {
throw new RuntimeException("RocketMq create schema history topic: " + topicConfig.getTopicName() + " " +
throw new DebeziumException("RocketMQ create schema history topic: " + topicConfig.getTopicName() + " " +
" failed", e);
}
finally {
@ -169,7 +171,7 @@ public static Set<String> fetchAllConsumerGroup(RocketMqConfig connectConfig) {
}
}
catch (Exception e) {
throw new RuntimeException("RocketMq admin fetch all topic failed", e);
throw new DebeziumException("RocketMQ admin fetch all topic failed", e);
}
finally {
if (defaultMQAdminExt != null) {

View File

@ -9,7 +9,7 @@
import java.util.Objects;
/**
* Configuration for connecting RocketMq
* Configuration for connecting RocketMQ
*/
public class RocketMqConfig {
private String namesrvAddr;

View File

@ -62,7 +62,7 @@ public class RocketMqSchemaHistory extends AbstractSchemaHistory {
.withType(ConfigDef.Type.STRING)
.withWidth(ConfigDef.Width.LONG)
.withImportance(ConfigDef.Importance.HIGH)
.withDescription("RocketMq service discovery service nameserver address configuration")
.withDescription("RocketMQ service discovery service nameserver address configuration")
.withValidation(Field::isRequired);
public static final Field ROCKETMQ_ACL_ENABLE = Field.create(CONFIGURATION_FIELD_PREFIX_STRING + "rocketmq.acl.enabled")
.withDisplayName("Access control list enabled")
@ -70,15 +70,15 @@ public class RocketMqSchemaHistory extends AbstractSchemaHistory {
.withDefault(false)
.withWidth(ConfigDef.Width.LONG)
.withImportance(ConfigDef.Importance.HIGH)
.withDescription("RocketMq access control enable configuration, default is 'false'");
.withDescription("RocketMQ access control enable configuration, default is 'false'");
public static final Field ROCKETMQ_ACCESS_KEY = Field.create(CONFIGURATION_FIELD_PREFIX_STRING + "rocketmq.access.key")
.withDisplayName("RocketMq access key")
.withDisplayName("RocketMQ access key")
.withType(ConfigDef.Type.STRING)
.withWidth(ConfigDef.Width.LONG)
.withImportance(ConfigDef.Importance.HIGH)
.withDescription("RocketMQ access key. If " + ROCKETMQ_ACL_ENABLE + " is true, the value cannot be empty");
public static final Field ROCKETMQ_SECRET_KEY = Field.create(CONFIGURATION_FIELD_PREFIX_STRING + "rocketmq.secret.key")
.withDisplayName("RocketMq secret key")
.withDisplayName("RocketMQ secret key")
.withType(ConfigDef.Type.STRING)
.withWidth(ConfigDef.Width.LONG)
.withImportance(ConfigDef.Importance.HIGH)
@ -106,12 +106,12 @@ public class RocketMqSchemaHistory extends AbstractSchemaHistory {
.withValidation(Field::isLong);
public static final Field STORE_RECORD_TIMEOUT_MS = Field.create(CONFIGURATION_FIELD_PREFIX_STRING
+ "rocketmq.store.record.timeout.ms")
.withDisplayName("Timeout for sending messages to RocketMq")
.withDisplayName("Timeout for sending messages to RocketMQ")
.withType(ConfigDef.Type.INT)
.withGroup(Field.createGroupEntry(Field.Group.ADVANCED, 1))
.withWidth(ConfigDef.Width.SHORT)
.withImportance(ConfigDef.Importance.LOW)
.withDescription("Timeout for sending messages to RocketMq.")
.withDescription("Timeout for sending messages to RocketMQ.")
.withDefault(60 * 1000)
.withValidation(Field::isLong);
private final static Logger LOGGER = LoggerFactory.getLogger(RocketMqSchemaHistory.class);

View File

@ -320,20 +320,20 @@ For more information see Redis https://redis.io/commands/wait/[WAIT] command.
|[[schema-history-internal-rocketmq-namesrvAddr]]<<schema-history-internal-rocketmq-namesrvAddr, `debezium.source.schema.history.internal.rocketmq.name.srv.addr`>>
|`localhost:9876`
|RocketMq service discovery NameServer address configuration.
|RocketMQ service discovery NameServer address configuration.
|[[schema-history-internal-rocketmq-acl-enabled]]<<schema-history-internal-rocketmq-acl-enabled, `debezium.source.schema.history.internal.rocketmq.acl.enabled`>>
|`false`
|RocketMq access control enable configuration, default is 'false'.
|RocketMQ access control enable configuration, default is 'false'.
|[[schema-history-internal-rocketmq-access-key]]<<schema-history-internal-rocketmq-access-key, `debezium.source.schema.history.internal.rocketmq.access.key`>>
|
|RocketMq access key. If `debezium.source.schema.history.internal.rocketmq.acl.enabled` is true, the value cannot be
|RocketMQ access key. If `debezium.source.schema.history.internal.rocketmq.acl.enabled` is true, the value cannot be
empty.
|[[schema-history-internal-rocketmq-secret-key]]<<schema-history-internal-rocketmq-secret-key, `debezium.source.schema.history.internal.rocketmq.secret.key`>>
|
|RocketMq secret key. If `debezium.source.schema.history.internal.rocketmq.acl.enabled` is true, the value cannot be
|RocketMQ secret key. If `debezium.source.schema.history.internal.rocketmq.acl.enabled` is true, the value cannot be
empty.
|[[schema-history-internal-rocketmq-recovery-attempts]]<<schema-history-internal-rocketmq-recovery-attempts,`debezium.source.schema.history.internal.rocketmq.recovery.attempts`>>
@ -347,7 +347,7 @@ data during recovery.
|[[schema-history-internal-rocketmq-store-record-timeout-ms]]<<schema-history-internal-rocketmq-store-record-timeout-ms,`debezium.source.schema.history.internal.rocketmq.store.record.timeout.ms`>>
| `60000`
|Timeout for sending messages to RocketMq.
|Timeout for sending messages to RocketMQ.
|===