chennaji9 commented on code in PR #11303:
URL: https://github.com/apache/rocketmq/pull/11303#discussion_r4148727478
##########
store/src/main/java/org/apache/rocketmq/store/plugin/MessageStoreFactory.java:
##########
@@ -36,7 +36,7 @@ public static MessageStore build(MessageStorePluginContext
context,
AbstractPluginMessageStore pluginMessageStore =
construct.newInstance(context, messageStore);
messageStore = pluginMessageStore;
} catch (Throwable e) {
- throw new RuntimeException("Initialize plugin's class: " +
pluginClass + " not found!", e);
+ throw new RuntimeException("Failed to initialize message
store plugin: " + pluginClass, e);
Review Comment:
Applied in 143ae96 — `build` now logs at ERROR via the store logger
(`LoggerName.STORE_LOGGER_NAME`, `org.apache.rocketmq.logging.org.slf4j`)
before rethrowing, so the cause chain lands in the broker log even when the
`RuntimeException` is re-wrapped upstream.
--
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]