You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "chennaji9 (via GitHub)" <gi...@apache.org> on 2026/09/30 10:41:18 UTC
[I] [Doc] Operations_Consumer.md backlog snippet uses non-existent Message.PROPERTY_MAX_OFFSET [rocketmq]
chennaji9 opened a new issue, #11292:
URL: https://github.com/apache/rocketmq/issues/11292
### Description
The consumer-accumulation monitoring snippet in `docs/en/Operations_Consumer.md` (section on consumption backlog) references a constant on the wrong class:
```java
String maxOffset =
msgs.get(0).getProperty(Message.PROPERTY_MAX_OFFSET);
```
`Message` has no `PROPERTY_MAX_OFFSET` constant — it is defined in `org.apache.rocketmq.common.message.MessageConst` (`MessageConst.PROPERTY_MAX_OFFSET`, common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java:33). The snippet as printed does not compile (`cannot find symbol: variable PROPERTY_MAX_OFFSET`).
### Expected behavior
The snippet should read `msgs.get(0).getProperty(MessageConst.PROPERTY_MAX_OFFSET)` with `MessageConst` imported (or fully qualified).
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org