You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Erich Duda (JIRA)" <ji...@apache.org> on 2016/12/06 12:20:59 UTC
[jira] [Commented] (ARTEMIS-850) Do not swallow the SQLException
when creating the table
[ https://issues.apache.org/jira/browse/ARTEMIS-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15725319#comment-15725319 ]
Erich Duda commented on ARTEMIS-850:
------------------------------------
The error message could also dump the incorrect SQL command. Wdyt?
> Do not swallow the SQLException when creating the table
> -------------------------------------------------------
>
> Key: ARTEMIS-850
> URL: https://issues.apache.org/jira/browse/ARTEMIS-850
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 1.5.0
> Reporter: Jeff Mesnil
>
> The AbstractJDBCDriver[1] swallows the SQLException if the table can not be created and does not report the error to the user (who has no idea what went wrong).
> Instead it should propagate the exception (after the connection is rolled back)
> [1] https://github.com/apache/activemq-artemis/blob/master/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/AbstractJDBCDriver.java#L124
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)