You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "AcceptMediocrity (via GitHub)" <gi...@apache.org> on 2025/05/22 09:25:15 UTC

[I] [Feature] 同一个消费者组消费不同的topic时不应该启动成功 [rocketmq]

AcceptMediocrity opened a new issue, #9422:
URL: https://github.com/apache/rocketmq/issues/9422

   ### Is Your Feature Request Related to a Problem?
   
   在4.X版本中,当一个消费者组尝试消费多个不同Topic时,系统会在启动时明确提示异常,有效避免了因配置不当导致消息未被消费的问题。然而,在5.X版本里,却未出现此类提示,这使得部分消息在消费过程中遗漏。鉴于此,建议在5.X版本中恢复这一提示机制,即在消费者组启动时,若检测到消费多个不同Topic的情况,则抛出异常并予以提示,以保障消息消费的完整性和准确性。
   
   ### Describe the Solution You'd Like
   
   还是以pid作为instanceName
   
   ### Describe Alternatives You've Considered
   
   还是以pid作为instanceName,启动时提示
   
   ### Additional Context
   
   _No response_


-- 
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


Re: [I] [Feature] It shouldn't start successfully when the same consumer group consumes different topics. [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9422:
URL: https://github.com/apache/rocketmq/issues/9422#issuecomment-4550219321

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
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


Re: [I] [Feature] It shouldn't start successfully when the same consumer group consumes different topics. [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9422:
URL: https://github.com/apache/rocketmq/issues/9422#issuecomment-4585278254

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
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


Re: [I] [Feature] It shouldn't start successfully when the same consumer group consumes different topics. [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9422: [Feature] It shouldn't start successfully when the same consumer group consumes different topics.
URL: https://github.com/apache/rocketmq/issues/9422


-- 
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


Re: [I] [Feature] 同一个消费者组消费不同的topic时不应该启动成功 [rocketmq]

Posted by "AcceptMediocrity (via GitHub)" <gi...@apache.org>.
AcceptMediocrity commented on issue #9422:
URL: https://github.com/apache/rocketmq/issues/9422#issuecomment-2900523616

   5.X
   public void changeInstanceNameToPID() {
           if (this.instanceName.equals("DEFAULT")) {
               this.instanceName = UtilAll.getPid() + "#" + System.nanoTime();
           }
       }
   
   4.X
   public void changeInstanceNameToPID() {
           if (this.instanceName.equals("DEFAULT")) {
               this.instanceName = String.valueOf(UtilAll.getPid());
           }
       }
   https://github.com/apache/rocketmq/blob/c9ea74962f4796be0b1137b120ee2106f8c732ff/client/src/main/java/org/apache/rocketmq/client/ClientConfig.java#L157C17-L157C40


-- 
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