Is there a file size limit of the clover db at 2GB?

We have 3 clover dbs, one for clienttests, integrationtests and unittests.

For calculating the total coverage, we merge those databases into a new clover db:
As you can see, this works as expected (and as it always did for over 18 months now)

[clover-merge] Clover Version 3.0.3, built on October 26 2010 (build-dev) 
[clover-merge] Loaded from: C:\devtools\clover-ant-3.0.2-patch101026\lib\clover.jar
[clover-merge] Clover: Commercial License registered to ...
[clover-merge] Merging database 1 of 3: d:\coverage\java\all\coverage/clienttests\coverage.db
[clover-merge] Merging database 2 of 3: d:\coverage\java\all\coverage/integrationtests\coverage.db
[clover-merge] Merging database 3 of 3: d:\coverage\java\all\coverage/junit\coverage.db
[clover-merge] Writing merged database registry [clover-merge] Merge complete

Since last weekend i get the following problem when trying to generate reports from the merged coveragedb file:

[clover-report] Clover Version 3.0.3, built on October 26 2010 (build-dev) 
[clover-report] Loaded from: C:\devtools\clover-ant-3.0.2-patch101026\lib\clover.jar
[clover-report] Clover: Commercial License registered to ...
[clover-report] Loading coverage database from: 'd:\coverage\java\all\clover\cloverDB\coverage.db'
[clover-report] Report generation failed: Clover encountered a problem reading the instrumentation registry "d:\coverage\java\all\clover\cloverDB\coverage.db". This database may have been corrupted. Please regenerate.

I checked the file and noticed, that its size is (according to windows explorer): 2,08 GB (2.244.583.202 bytes), which is just over 2GB.
I do not know the sizes of the previous weekends run, since we do not keep the coverage dbs,
but since nothing else changed in the procedure, i assume that 2GB is the problem here.

1 answer

This widget could not be displayed.

Looks like you are using HSQLDB. There is no self imposed size limit for it.

This seems to me like a case of DB corruption. Maybe someone closed the connection abruptly or something! Are you able to connect directly to the DB ?

What do you mean by "HSQLDB" and "connect directly to the DB"? I was thinking clover uses its own proprietary database format to write its cloverdb files.

And if i am wrong, how could i change the database it is using?

Looks like you are right. Found this about clover db. You can get information about the DB using clover2:log it seems.

However the error seems much similar to HSQLDB error I have seen in the past and must be a case of corruption.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 49m ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

10 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you