RockteMQ-AI commented on issue #11327: URL: https://github.com/apache/rocketmq/issues/11327#issuecomment-6110376886
**Issue Evaluation** Category: `type/bug` (example) | Status: **Confirmed** The operation example `Producer.java` parses `msgCount` with `Integer.parseInt(msgCount)` only inside the `for` loop condition, after `producer.start()` has already been called. Invalid input (non-numeric or negative) causes a `NumberFormatException` or a silent zero-iteration loop after the producer has already connected to the broker. **Suggested fix:** Parse and validate `msgCount` before creating/starting the producer, and exit with a clear error message on invalid input. --- *Automated evaluation by RocketMQ-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]
