jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-2952) CLONE - RDBConnectionHandler: handle failure on setReadOnly() gracefully
Date Wed, 03 Jun 2015 06:48:49 GMT

    [ https://issues.apache.org/jira/browse/OAK-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14570373#comment-14570373
] 

Julian Reschke commented on OAK-2952:
-------------------------------------

The fix applied for OAK-2918 catches the exception (so main problem should be solved), but
it fails to remember that, thus causing each attempt to be written to the error log.

> CLONE - RDBConnectionHandler: handle failure on setReadOnly() gracefully
> ------------------------------------------------------------------------
>
>                 Key: OAK-2952
>                 URL: https://issues.apache.org/jira/browse/OAK-2952
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: rdbmk
>    Affects Versions: 1.2.2, 1.3.0, 1.0.14
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>             Fix For: 1.3.0, 1.2.3, 1.0.15
>
>
> It appears that WAS wraps Oracle JDBC connection objects and throws upon setReadOnly():
> {noformat}
> java.sql.SQLException: DSRA9010E: 'setReadOnly' is not supported on the WebSphere java.sql.Connection
implementation.
> at com.ibm.ws.rsadapter.spi.InternalOracleDataStoreHelper.setReadOnly(InternalOracleDataStoreHelper.java:369)
> at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.setReadOnly(WSJdbcConnection.java:3626)
> at org.apache.jackrabbit.oak.plugins.document.rdb.RDBConnectionHandler.getROConnection(RDBConnectionHandler.java:61)
> {noformat}
> ...which of course is a bug in WAS (setReadOnly() is documented as a hint, the implementation
is not supposed to throw an exception here); see also <http://www-01.ibm.com/support/docview.wss?uid=swg1PM58588>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message