You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/11/04 04:39:58 UTC

[jira] [Comment Edited] (OAK-5062) Test failure in DocumentNodeStoreConfigTest.testRDBDocumentStore_CustomBlobDataSource

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

Chetan Mehrotra edited comment on OAK-5062 at 11/4/16 4:39 AM:
---------------------------------------------------------------

Probably some issue in query invoked for H2

{noformat}
create alias if not exists unix_timestamp as [*]$$ long unix_timestamp() { return System.currentTimeMillis()/1000L; }"
{noformat}

/cc [~reschke] [~tmueller]


was (Author: chetanm):
{noformat}
create alias if not exists unix_timestamp as [*]$$ long unix_timestamp() { return System.currentTimeMillis()/1000L; }"
{noformat}

/cc [~reschke] [~tmueller]

> Test failure in DocumentNodeStoreConfigTest.testRDBDocumentStore_CustomBlobDataSource
> -------------------------------------------------------------------------------------
>
>                 Key: OAK-5062
>                 URL: https://issues.apache.org/jira/browse/OAK-5062
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: unit-tests.log
>
>
> Saw a test failure [here|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/1262/jdk=JDK%201.7%20(latest),label=Ubuntu,nsfixtures=DOCUMENT_NS,profile=unittesting/testReport/junit/org.apache.jackrabbit.oak.run.osgi/DocumentNodeStoreConfigTest/testRDBDocumentStore_CustomBlobDataSource/]
> In the logs following can be seen
> {noformat}
> Caused by: org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "create alias if not exists unix_timestamp as [*]$$ long unix_timestamp() { return System.currentTimeMillis()/1000L; }"; SQL statement:
> create alias if not exists unix_timestamp as $$ long unix_timestamp() { return System.currentTimeMillis()/1000L; } $$; [42000-193]
> 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.message.DbException.get(DbException.java:179) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.message.DbException.get(DbException.java:155) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.message.DbException.getSyntaxError(DbException.java:191) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Parser.getSyntaxError(Parser.java:530) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Parser.checkRunOver(Parser.java:3694) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Parser.initialize(Parser.java:3559) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Parser.parse(Parser.java:304) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Parser.parse(Parser.java:293) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.CommandContainer.recompileIfRequired(CommandContainer.java:73) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.CommandContainer.update(CommandContainer.java:93) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.command.Command.executeUpdate(Command.java:258) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:184) ~[h2-1.4.193.jar:1.4.193]
> 	at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158) ~[h2-1.4.193.jar:1.4.193]
> 	at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.initialize(RDBDocumentStore.java:802) ~[oak-core-1.6-SNAPSHOT.jar:1.6-SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.<init>(RDBDocumentStore.java:209) ~[oak-core-1.6-SNAPSHOT.jar:1.6-SNAPSHOT]
> 	... 26 common frames omitted
> 03.11.2016 14:52:10.662 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService)] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(23)] Failed creating the component instance; see log for reason
> {noformat}



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