You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "niezhiliang (via GitHub)" <gi...@apache.org> on 2023/04/17 06:52:01 UTC
[GitHub] [rocketmq] niezhiliang opened a new issue, #6600: why do consumer group messages sometimes become negative when squeezed
niezhiliang opened a new issue, #6600:
URL: https://github.com/apache/rocketmq/issues/6600
rocketmq-dashboard version: 4.5.1
sometimes positive and sometimes negative


what is the reason for this? Is it because consumption is too fast?
--
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
[GitHub] [rocketmq] ni-ze closed issue #6600: why do consumer group messages sometimes become negative when squeezed
Posted by "ni-ze (via GitHub)" <gi...@apache.org>.
ni-ze closed issue #6600: why do consumer group messages sometimes become negative when squeezed
URL: https://github.com/apache/rocketmq/issues/6600
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] yzhao66 commented on issue #6600: why do consumer group messages sometimes become negative when squeezed
Posted by "yzhao66 (via GitHub)" <gi...@apache.org>.
yzhao66 commented on issue #6600:
URL: https://github.com/apache/rocketmq/issues/6600#issuecomment-1510824092

also has this problem
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] aaron-ai commented on issue #6600: why do consumer group messages sometimes become negative when squeezed
Posted by "aaron-ai (via GitHub)" <gi...@apache.org>.
aaron-ai commented on issue #6600:
URL: https://github.com/apache/rocketmq/issues/6600#issuecomment-1514050757
Please see https://github.com/apache/rocketmq/issues/6153
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] HScarb commented on issue #6600: why do consumer group messages sometimes become negative when squeezed
Posted by "HScarb (via GitHub)" <gi...@apache.org>.
HScarb commented on issue #6600:
URL: https://github.com/apache/rocketmq/issues/6600#issuecomment-1510870832
Can you press consume detail to get the detailed info of this consumer?
The delay is calculated by the code below:
```java
@Override
public GroupConsumeInfo queryGroup(String consumerGroup) {
GroupConsumeInfo groupConsumeInfo = new GroupConsumeInfo();
try {
ConsumeStats consumeStats = null;
try {
consumeStats = mqAdminExt.examineConsumeStats(consumerGroup);
}
catch (Exception e) {
logger.warn("examineConsumeStats exception to consumerGroup {}, response [{}]", consumerGroup, e.getMessage());
}
ConsumerConnection consumerConnection = null;
try {
consumerConnection = mqAdminExt.examineConsumerConnectionInfo(consumerGroup);
}
catch (Exception e) {
logger.warn("examineConsumeStats exception to consumerGroup {}, response [{}]", consumerGroup, e.getMessage());
}
groupConsumeInfo.setGroup(consumerGroup);
if (consumeStats != null) {
groupConsumeInfo.setConsumeTps((int)consumeStats.getConsumeTps());
groupConsumeInfo.setDiffTotal(consumeStats.computeTotalDiff());
}
if (consumerConnection != null) {
groupConsumeInfo.setCount(consumerConnection.getConnectionSet().size());
groupConsumeInfo.setMessageModel(consumerConnection.getMessageModel());
groupConsumeInfo.setConsumeType(consumerConnection.getConsumeType());
groupConsumeInfo.setVersion(MQVersion.getVersionDesc(consumerConnection.computeMinVersion()));
}
}
catch (Exception e) {
logger.warn("examineConsumeStats or examineConsumerConnectionInfo exception, "
+ consumerGroup, e);
}
return groupConsumeInfo;
}
```
```java
public long computeTotalDiff() {
long diffTotal = 0L;
Iterator<Entry<MessageQueue, OffsetWrapper>> it = this.offsetTable.entrySet().iterator();
while (it.hasNext()) {
Entry<MessageQueue, OffsetWrapper> next = it.next();
long diff = next.getValue().getBrokerOffset() - next.getValue().getConsumerOffset();
diffTotal += diff;
}
return diffTotal;
}
```
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org