You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "GaoYang (Jira)" <ji...@apache.org> on 2021/10/14 09:48:00 UTC
[jira] [Commented] (IOTDB-1848) Failed to initialize pool: Does not
support setReadOnly
[ https://issues.apache.org/jira/browse/IOTDB-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428734#comment-17428734 ]
GaoYang commented on IOTDB-1848:
--------------------------------
I'll fix it as follows:
1. In setReadOnly method, when and only when the param is true, we will throw an unsupported exception.
2. Thus, is the setReadOnly param is false, just return normally.
> Failed to initialize pool: Does not support setReadOnly
> -------------------------------------------------------
>
> Key: IOTDB-1848
> URL: https://issues.apache.org/jira/browse/IOTDB-1848
> Project: Apache IoTDB
> Issue Type: Bug
> Components: Connectors/Grafana
> Reporter: GaoYang
> Priority: Major
> Attachments: image-2021-10-14-17-41-48-614.png
>
>
> 1. iotdb-grafana used jdbcTemplate which will use hikari as database connection pool
> 2. when creating connection, hikari will set readonly param
> 3. in iotdb-jdbc module, IoTDBConnection throw an exception in setReadOnly() method.
> 4. Then, we will see : *com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Does not support setReadOnly*
> *!image-2021-10-14-17-41-48-614.png!*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)