yx9o commented on code in PR #11616:
URL: https://github.com/apache/rocketmq/pull/11616#discussion_r4697016072


##########
client/src/main/java/org/apache/rocketmq/client/consumer/DefaultLitePullConsumer.java:
##########
@@ -278,7 +280,7 @@ public void unsubscribe(String topic) {
 
     @Override
     public void assign(Collection<MessageQueue> messageQueues) {
-        defaultLitePullConsumerImpl.assign(queuesWithNamespace(messageQueues));
+        
defaultLitePullConsumerImpl.assign(wrapQueuesWithNamespace(messageQueues));

Review Comment:
   With a namespace configured, reusing the same `MessageQueue` for `assign()` 
and `commit(Map, ...)` now silently skips the offset update because the 
assigned queue is namespaced but the commit key is not. Could we apply the same 
namespace conversion to the explicit commit APIs without mutating the caller's 
queues?



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