Hi,

while fixing some upgrade tests I noticed this method:
RepositoryUpgrade.setEarlyShutdown().

In CopyVersionHistoryTest.performCopy() this flag is set
to true and causes many ERROR and WARN messages during the
copy:

08:37:12.177 ERROR [main] BundleDbPersistenceManager.java:900 failed to
read bundle (stacktrace on DEBUG log level):
ff313fbc-38bd-4eec-a671-4de95acd9991: java.sql.SQLException: Data source
is closed
08:37:12.184 WARN  [main] JackrabbitNodeState.java:714
/jcr:system/jcr:versionStorage/35/bf/b5/35bfb553-9af9-40bb-8eb3-4176aa682a8
5/jcr:rootVersion: Skipping broken child node entry jcr:frozenNode


Is this really intended? The test does not fail, but the closed
data source introduces a significant delay during the copy
operation because Jackrabbit retries the SQL call after a 100 ms
sleep. Setting the flag to false reduces the time to run the
CopyVersionHistoryTest from 18 sec to 5 sec.


Regards
 Marcel

Reply via email to