Skip to content

Commit

Permalink
[Document] Update user_guide.md: Fix for link. (#4085)
Browse files Browse the repository at this point in the history
* Update user_guide.md

Fix for link: md field regard 'full width text' as part of link.

Replace linkage with '#'.

* Highlight java code

* fix typo in TraceDispatcher
  • Loading branch information
dugenkui03 authored Apr 2, 2022
1 parent e3b6748 commit fd554ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum Type {

/**
* Append the transfering data
* @param ctx data infomation
* @param ctx data information
* @return
*/
boolean append(Object ctx);
Expand Down
2 changes: 1 addition & 1 deletion docs/cn/acl/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ sh mqadmin getAclConfig -n 192.168.1.2:9876 -c DefaultCluster
| b | eg:192.168.12.134:10911 | 指定broker地址(与集群名称二选一) |

**特别注意**开启Acl鉴权认证后导致Master/Slave和Dledger模式下Broker同步数据异常的问题,
在社区[4.5.1]版本中已经修复,具体的PR链接为:https://github.com/apache/rocketmq/pull/1149
在社区[4.5.1]版本中已经修复,具体的PR链接为:#1149
4 changes: 2 additions & 2 deletions docs/cn/msg_trace/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RocketMQ的消息轨迹特性支持两种存储轨迹数据的方式:
为了尽可能地减少用户业务系统使用RocketMQ消息轨迹特性的改造工作量,作者在设计时候采用对原来接口增加一个开关参数(**enableMsgTrace**)来实现消息轨迹是否开启;并新增一个自定义参数(**customizedTraceTopic**)来实现用户存储消息轨迹数据至自己创建的用户级Topic。

### 4.1 发送消息时开启消息轨迹
```
```java
DefaultMQProducer producer = new DefaultMQProducer("ProducerGroupName",true);
producer.setNamesrvAddr("XX.XX.XX.XX1");
producer.start();
Expand All @@ -73,7 +73,7 @@ RocketMQ的消息轨迹特性支持两种存储轨迹数据的方式:
```

### 4.2 订阅消息时开启消息轨迹
```
```java
DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("CID_JODIE_1",true);
consumer.subscribe("TopicTest", "*");
consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_FIRST_OFFSET);
Expand Down

0 comments on commit fd554ab

Please sign in to comment.