RockteMQ-AI commented on issue #718: URL: https://github.com/apache/rocketmq-spring/issues/718#issuecomment-5310370366
**Issue Evaluation** Category: `bug` | Status: **Confirmed** This is a valid bug. The `registerTemplate` method in `ExtConsumerResetConfiguration` has a variable naming mismatch: - `consumerBuilder` is declared as `null` on line 93 but never assigned. - Inside the `try` block, a separate local variable `simpleConsumerBuilder` is created and used, but its value is never propagated back to `consumerBuilder`. - Similarly, `simpleConsumer` is never assigned (the `createConsumer` call result goes to `simpleConsumerInfo`, not `simpleConsumer`). - As a result, `rocketMQTemplate.setSimpleConsumerBuilder(consumerBuilder)` always sets `null`, and `setSimpleConsumer(simpleConsumer)` also sets `null`. **Impact:** Any `ExtRocketMQTemplateConfiguration`-based `RocketMQTemplate` bean will have a non-functional `SimpleConsumer` — the consumer builder and consumer are silently null. **Severity:** High — this breaks the v5 SimpleConsumer integration for extended templates. **Suggested fix:** As the reporter proposed, use `consumerBuilder` directly inside the `try` block, call `consumerBuilder.build()` to assign `simpleConsumer`, and pass the correct variables to the setters. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by RockteMQ-AI* -- 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]
