Got two problems:
1. In db present table with name "USER". For this table incorrectly received metadata about primary keys, unique constraints and foreing keys.
I fix it with creating my own dialect hsqldb234 with
class HSQLDB234Dialect extends HSQLDBDialect with internal
private class hsqldb234IdentifierNormalizer extends StandardIdentifierNormalizer
HSQLDB234DialectFactory implements DialectFactory
Question: Is it bug in ha-jdbc or I don't know something?
In addition in ~10% of hard reset of any database in cluster i got error
[Server@fce56f8]: [Thread[HSQLDB Server @fce56f8,5,main]]: Opening database: [file:node3/ConsoleDb]2016-12-24T21:32:06.181+0300 SEVERE statement error processing log - open continuednode3/ConsoleDb.log line: 9org.hsqldb.HsqlException: user lacks privilege or object not found: SYS_FK_10364at org.hsqldb.error.Error.error(Unknown Source)at org.hsqldb.error.Error.error(Unknown Source)
After that ALL foreign key in database are changing it names and cluster stop normally syncronize (i'm using full syncronization strategy)
Probles it that in sync process is used metadata that parsed on cluster startup. But after db restoration I have database with changed metadata.
I fix it by dirty hack SynchronizationSupportImpl with modification dropForeignKeys()
Hi. I created cluster over 3 same hsqldb databases.
Got two problems:
1. In db present table with name "USER". For this table incorrectly received metadata about primary keys, unique constraints and foreing keys.
I fix it with creating my own dialect hsqldb234 with
class HSQLDB234Dialect extends HSQLDBDialect with internal
private class hsqldb234IdentifierNormalizer extends StandardIdentifierNormalizer
HSQLDB234DialectFactory implements DialectFactory
Question: Is it bug in ha-jdbc or I don't know something?
After that ALL foreign key in database are changing it names and cluster stop normally syncronize (i'm using full syncronization strategy)
Probles it that in sync process is used metadata that parsed on cluster startup. But after db restoration I have database with changed metadata.
I fix it by dirty hack SynchronizationSupportImpl with modification dropForeignKeys()
I'm sure that this way is incorrect.
How I must work with this problem? Create my own sycronization strategy?