yp969803 commented on issue #7614:
URL: https://github.com/apache/rocketmq/issues/7614#issuecomment-1842048840

   ```
     public void testMaxOffset() throws InterruptedException {
           if (notExecuted()) {
               return;
           }
           int firstBatchMessages = 3;
           int queueId = 0;
           messageBody = storeMessage.getBytes();
   
           assertThat(messageStore.getMaxOffsetInQueue(messageTopic, 
queueId)).isEqualTo(0);
   
           for (int i = 0; i < firstBatchMessages; i++) {
               final MessageExtBrokerInner msg = buildMessage();
               msg.setQueueId(queueId);
               messageStore.putMessage(msg);
           }
   
           while (messageStore.dispatchBehindBytes() != 0) {
               TimeUnit.MILLISECONDS.sleep(1);
           }
   
           assertThat(messageStore.getMaxOffsetInQueue(messageTopic, 
queueId)).isEqualTo(firstBatchMessages);
   ```
   
   Didn't find anything wrong in this code dont know why the test is failing


-- 
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-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to