rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

delay message can't be consumed

Open yongliangcode opened this issue 6 years ago • 6 comments

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)? In our production environment,producer send delay message,but this message can not be consumed.

Producer code Message msg = new Message("my_test_topic", value.getBytes(RemotingHelper.DEFAULT_CHARSET)); msg.setKeys(key); msg.setDelayTimeLevel(4); SendResult sendResult = producer.send(msg);

  • What did you expect to see?

This message can be consumed correct.

  • What did you see instead? In the storeerror.log there are a lot of error message. 2020-03-18 16:38:06 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 509548460, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:06 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 665682360, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 509548460, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 665682360, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 509548460, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 665682360, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 509548460, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1 2020-03-18 16:38:07 WARN ScheduleMessageTimerThread - Offset not matched. Request offset: 665682360, firstOffset: 0, lastOffset: 6000000, mappedFileSize: 6000000, mappedFiles count: 1
  1. Please tell us about your environment: Our production environment. RocketMQ 4.5.2;But other rocketmq cluster of this version run ok.

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc): After remove file "consumequeue/SCHEDULE_TOPIC_XXXX" and remove "config/delayOffset.json" file, restart the broker, delay message restore, consume correctly.

Reference event review process: https://mp.weixin.qq.com/s/f27tcOlm0_BTvL8725RPTQ

yongliangcode avatar Mar 19 '20 08:03 yongliangcode

This issue can be assigned to me firstly. @wlliqipeng @yongliangcode

zongtanghu avatar May 09 '20 01:05 zongtanghu

Has it been resolved?

kayyellow avatar Aug 10 '20 07:08 kayyellow

Has it been resolved?

zhoufan1 avatar Jan 18 '21 12:01 zhoufan1

Has it been resolved?

jeffchanjunwei avatar Aug 10 '21 08:08 jeffchanjunwei

Has it been resolved?

It will be released in 4.9.2. see #3358

ShannonDing avatar Sep 22 '21 06:09 ShannonDing

it happened after i changed the delayTimeLevel in project i changed back, it worked correctly

chiweng2009 avatar Nov 23 '21 07:11 chiweng2009