qianye1001 commented on PR #10252: URL: https://github.com/apache/rocketmq/pull/10252#issuecomment-4287604399
Thanks for looking into this issue, @zhaohai666. After reviewing the changes, I don't think patching the server side is the right approach here. The `settings` being null means the client did not establish a proper Telemetry session before calling `receiveMessage`. Silently falling back to hardcoded defaults on the server masks the real problem and can introduce subtle issues — for example, defaulting `fifo=false` for a consumer that actually requires FIFO ordering would cause silent data misordering, which is arguably worse than a clear error. The server is behaving correctly by expecting valid client settings to be present. The proper fix should be on the client side (e.g., the Node.js SDK `rocketmq-client-nodejs`), ensuring it establishes and maintains the Telemetry session so that settings are always available when `receiveMessage` is called. The Java client already does this correctly, which is why this issue only surfaces with non-Java SDKs. Adding defensive null checks on the server to compensate for incomplete client implementations sets a bad precedent — it shifts the contract and could hide future client-side bugs as well. I'd suggest investigating why the client SDK loses its Telemetry session over time and fixing it there instead. -- 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]
