apache / apache/rocketmq-site

Inconsistency Between Documentation and Code Regarding Default State of enableTopicMessageTypeCheck

Open
#587 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
66
Forks
262
Avg merge
4d 19h
Merged PRs (30d)
2

Description

The issue tracker is **ONLY** used for bug report and feature request.

Any question or RocketMQ proposal please use our [mailing lists](http://rocketmq.apache.org/about/contact/).

**BUG REPORT**
1. Please describe the issue you observed:
These [files](https://github.com/apache/rocketmq-site/pull/549/files ) pr add some document descriptions, one about `enableTopicMessageTypeCheck` false by default.
![image](https://github.com/apache/rocketmq-site/assets/74245184/e2116307-b934-42c0-9cad-b30fb5a8e475)
but this code [ProxyConfig.java](https://github.com/apache/rocketmq/blob/f534501855f8edbcb58f5b856973bf1027b5cf3a/proxy/src/main/java/org/apache/rocketmq/proxy/config/ProxyConfig.java#L124) defaults to true.
```java
private long defaultInvisibleTimeMills = Duration.ofSeconds(60).toMillis();
private long minInvisibleTimeMillsForRecv = Duration.ofSeconds(10).toMillis();
private long maxInvisibleTimeMills = Duration.ofHours(12).toMillis();
private long maxDelayTimeMills = Duration.ofDays(1).toMillis();
private long maxTransactionRecoverySecond = Duration.ofHours(1).getSeconds();
private boolean enableTopicMessageTypeCheck = true;
```

2. Please tell us about your environment:

3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the documentation changes in rocketmq-site PR #549 with the enableTopicMessageTypeCheck declaration in proxy/src/main/java/org/apache/rocketmq/proxy/config/ProxyConfig.java. Confirm which default is intended, align the documentation or code accordingly, and verify that both sources consistently describe the setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.