Skip to content

Commit

Permalink
HSQLDB changelogs for billing brought up to date
Browse files Browse the repository at this point in the history
Patch responds to bug concerning VARCHAR size (see link below), but more generally, adds missing triggers and views to the liquibase changesets used with HSQLDB.  

Also: modified the DAO implementation to set the transaction isolation level to serializable, for correctness; added a few changes to the configuration file (mostly properties to enable parts of webadmin which were not previously enabled); in particular, an alarm server cell.

Note that I have taken the liberty of altering the original changelogs directly, as the liquibase tables are recreated on the fly each time (embedded db), at least for the moment.

Tested by doing multiple reads/writes.  Checked web pages (billing plots).

Target: trunk
Patch: http://rb.dcache.org/r/5261
Bug: http://rt.dcache.org/Ticket/Display.html?id=7665
Acked-by: Gerd
Acked-by: Paul
Require-notes: no
Require-book: no
Request: 2.5
  • Loading branch information
alrossi committed Mar 15, 2013
1 parent 4cee546 commit 8cba216
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 180 deletions.
Expand Up @@ -133,6 +133,7 @@ public <T> void put(T data)
}
tx = insertManager.currentTransaction();
if (!tx.isActive()) {
tx.setIsolationLevel("serializable");
tx.begin();
}
insertManager.makePersistent(data);
Expand Down
Expand Up @@ -10,6 +10,9 @@ metaDataRepository=org.dcache.pool.repository.meta.db.BerkeleyDBMetaDataReposito
srmSpaceManagerEnabled=yes
replicaManager=yes
billingToDb=yes
generatePlots=true
poolmanager.cache-hit-messages.enabled=true
poolqplots.enabled=true

[dCacheDomain]
# The following is only defined for the domain to prevent that the CLI
Expand All @@ -19,6 +22,7 @@ dcache.java.options.extra=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address
[dCacheDomain/admin]
adminHistoryFile=${dcache.home}/var/admin/history

[dCacheDomain/alarms]
[dCacheDomain/broadcast]
[dCacheDomain/topo]
[dCacheDomain/loginbroker]
Expand All @@ -41,7 +45,7 @@ replicaAdjustStartTimeout=10
[dCacheDomain/httpd]
authenticated=true
transfersCollectorUpdate=10000
webadminAdminGid=1
webadminAdminGid=1000

[dCacheDomain/statistics]

Expand Down

0 comments on commit 8cba216

Please sign in to comment.