RongtongJin commented on PR #11505: URL: https://github.com/apache/rocketmq/pull/11505#issuecomment-7337881687
Thanks for following up. CI is green now, and I also ran `ScheduleMessageServiceTest` on JDK 17. All five tests passed. I agree that encoding before clearing the scheduling properties leaves stale data in the commit log. I found two consumer-visible changes that I'd like us to address before merging. I sent a message with delay level 2 and `WAIT=true`, read it back from the real topic after delivery, and passed it through `GrpcConverter`. | Value after delivery | Before | With this PR | | --- | --- | --- | | Stored `DELAY` property | `2` | absent | | `isWaitStoreMsgOK()` | `true` | `false` | | gRPC `SystemProperties.message_type` | `DELAY` | `NORMAL` | 1. Could we preserve the original stored `WAIT` value by clearing the scheduling properties, encoding them, and then calling `setWaitStoreMsgOK(false)` for the broker's internal put? This matters because the Java push consumer copies the delivered properties when it falls back to `sendMessageBackAsNormalMessage`. An inherited `WAIT=false` can make that retry return before synchronous flush or replication completes. 2. Could you cover the gRPC receive path and clarify the intended message type after delivery? `GrpcConverter` derives it from the stored properties, so removing `DELAY` changes what a client sees for a delay-level message. I'd like to preserve the existing `DELAY` response unless we explicitly agree to change that API behavior. The existing `testDeliverDelayedMessageTimerTask` already reads and decodes the delivered message, which makes it a good place to check the stored properties. In the new test, please also set `PROPERTY_TIMER_DELAY_SEC` on the input and check decoded keys so the assertion exercises its removal. -- 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]
