You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "Jaskey Lam (JIRA)" <ji...@apache.org> on 2017/04/17 12:47:41 UTC

[jira] [Updated] (ROCKETMQ-105) Implementation of consumerOffset and maxOffset are counter-intuitive

     [ https://issues.apache.org/jira/browse/ROCKETMQ-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaskey Lam updated ROCKETMQ-105:
--------------------------------
    Description: 
This issue does not affect any functionalites, but it indeed is a problem for user to understand the principle  of RocketMQ.

- ConsumerOffset:

User might consider `ConsumerOffset` is the offset where consumer has consumed. for example if CG1 have a consumer offset 100 of topicA-q1, I may propabaly consider message with offset 100 has been cosumed. But actully, it is not. The message with offset 100 is the next target offset to pull from.

- Max Offset

User might consider this is the offset of the latest message in a queue. But it is not, it is indicating that next offset when new message arrived.

If possible , any of the below two things should be taken into consideration

1. the implementaion should be changed to be closer to presentative judgment of human

2. rename the concept to clarify how it really implemented.


  was:
This issue does not affect any functionality=ies, but it indeed is a problem for user to understand the principle  of RocketMQ.

- ConsumerOffset:

User might consider `ConsumerOffset` is the offset where consumer has consumed. for example if CG1 have a consumer offset 100 of topicA-q1, I may propabaly consider message with offset 100 has been cosumed. But actully, it is not. The message with offset 100 is the next target offset to pull from.

- Max Offset

User might consider this is the offset of the latest message in a queue. But it is not, it is indicating that next offset when new message arrived.

If possible , any of the below two things should be taken into consideration

1. the implementaion should be changed to be closer to presentative judgment of human

2. rename the concept to clarify how it really implemented.



> Implementation of consumerOffset and maxOffset are counter-intuitive
> --------------------------------------------------------------------
>
>                 Key: ROCKETMQ-105
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-105
>             Project: Apache RocketMQ
>          Issue Type: Wish
>          Components: rocketmq-broker, rocketmq-client, rocketmq-store
>    Affects Versions: 4.0.0-incubating
>            Reporter: Jaskey Lam
>            Assignee: yukon
>            Priority: Minor
>
> This issue does not affect any functionalites, but it indeed is a problem for user to understand the principle  of RocketMQ.
> - ConsumerOffset:
> User might consider `ConsumerOffset` is the offset where consumer has consumed. for example if CG1 have a consumer offset 100 of topicA-q1, I may propabaly consider message with offset 100 has been cosumed. But actully, it is not. The message with offset 100 is the next target offset to pull from.
> - Max Offset
> User might consider this is the offset of the latest message in a queue. But it is not, it is indicating that next offset when new message arrived.
> If possible , any of the below two things should be taken into consideration
> 1. the implementaion should be changed to be closer to presentative judgment of human
> 2. rename the concept to clarify how it really implemented.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)