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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to