Hi,

 

We have been running opengrok to index source held in a CVS repository
for several years. I've noticed today that the derby historycache does
not appear to be being used.

 

I index with

 

/usr/java6/bin/java -Xmx1224M -classpath
/BUILD/local/apps/opengrok/bin/opengrok.0.11.1.jar:/BUILD/local/apps/ope
ngrok/bin/lib-0.11.1/ant.jar:/BUILD/local/apps/opengrok/bin/lib-0.11.1/b
cel-5.2.jar:/BUILD/local/apps/opengrok/bin/lib-0.11.1/derby.jar:/BUILD/l
ocal/apps/opengrok/bin/lib-0.11.1/derbyclient.jar:/BUILD/local/apps/open
grok/bin/lib-0.11.1/derbynet.jar:/BUILD/local/apps/opengrok/bin/lib-0.11
.1/jrcs.jar:/BUILD/local/apps/opengrok/bin/lib-0.11.1/lucene-core-3.0.2.
jar:/BUILD/local/apps/opengrok/bin/lib-0.11.1/lucene-spellchecker-3.0.2.
jar:/BUILD/local/apps/opengrok/bin/lib-0.11.1/swing-layout-0.9.jar
org.opensolaris.opengrok.index.Indexer -s
/BUILD/spool/data/opengrok/checkout/HEAD -c
/BUILD/local/apps/ctags/bin/ctags -D -j client -w /opengrok -d
/BUILD/spool/data/opengrok/staging/HEAD -v -a off -O on -Q off -H -D -j
client -w /opengrok -S -r on -m 300000

 

The source is checked out into /BUILD/spool/data/opengrok/checkout/HEAD
.

The CVS root is in an NFS-mounted directory (so is local to all intents
and purposes).

 

I can browse history and annotations with the webapp. However: the
tables in the cachedb remain steadfastly empty (despite being created by
the indexing operation). I can see the initial queries from the indexing
process in the derby logs

 

Thu Jun 21 17:42:16 CEST 2012 Thread[DRDAConnThread_13,5,main] (XID =
3643), (SESSIONID = 21), (DATABASE = cachedb), (DRDAID =
.-507498042715977085{11}), Executing prepared statement: SELECT 1 FROM
OPENGROK.REPOSITORIES R, OPENGROK.DIRECTORIES D WHERE D.REPOSITORY =
R.ID AND R.PATH = ? AND D.PATH = ? :End prepared statement with 2
parameters begin parameter #1:
/BUILD/environments_nolog2/spool/data/opengrok/checkout/HEAD :end
parameter begin parameter #2:  :end parameter

Thu Jun 21 17:42:16 CEST 2012 Thread[DRDAConnThread_13,5,main] (XID =
3643), (SESSIONID = 21), (DATABASE = cachedb), (DRDAID =
.-507498042715977085{11}), Rolling back

 

But no inserts. The webapp equally fails to select anything in the
database (although it complains at startup that it can't get a
connection if the database server isn't running).

 

I'm sure I've missed something obvious. Could somebody please point me
in the right direction ?

 

Many thanks,

 

Mark

 

_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to