RockteMQ-AI commented on issue #1323: URL: https://github.com/apache/rocketmq-clients/issues/1323#issuecomment-5318466612
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the description and regression context. **Root Cause:** PR #1253 introduced an `isNoNewMessage` branch in `process_queue.go` that skips the `cli.doAfter(MessageHookPoints_RECEIVE, ...)` call when a long-polling request returns `MESSAGE_NOT_FOUND`. This means the inflight counter (`inflightReceiveRequestCount` in `defultInflightRequestCountInterceptor`) is incremented on receive start but never decremented on the no-message expiry path. **Impact:** `GracefulStop()` → `waitingReceiveRequestFinished()` can never observe a zero counter after idle periods, causing a fixed ~24s shutdown delay (requestTimeout + longPollingTimeout + 1s sleep) on every restart — regardless of actual in-flight work. **Severity:** medium — affects Go SDK users in proxy mode with long-polling. No data loss, but degrades operational experience (slow restarts, misleading timeout warnings in logs). **Suggested Fix:** Ensure `cli.doAfter(MessageHookPoints_RECEIVE, ...)` is called in the `isNoNewMessage` branch of `process_queue.go`, matching the behavior of other error/timeout paths. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager-bot* -- 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]
