mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed test failure.
Slightly tuned version of another test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -37,7 +37,7 @@ public class AVMCrawlTestP extends AVMServiceTestBase
|
|||||||
{
|
{
|
||||||
int n = 4; // Number of Threads.
|
int n = 4; // Number of Threads.
|
||||||
int m = 12; // How many multiples of content to start with.
|
int m = 12; // How many multiples of content to start with.
|
||||||
long runTime = 7200000; // 6 hours.
|
long runTime = 36000000; // 6 hours.
|
||||||
fService.purgeStore("main");
|
fService.purgeStore("main");
|
||||||
BulkLoader loader = new BulkLoader();
|
BulkLoader loader = new BulkLoader();
|
||||||
loader.setAvmService(fService);
|
loader.setAvmService(fService);
|
||||||
|
@@ -854,7 +854,7 @@ public class AVMNodeService extends AbstractNodeServiceImpl implements NodeServi
|
|||||||
{
|
{
|
||||||
throw new InvalidNodeRefException("Read only store.", parentRef);
|
throw new InvalidNodeRefException("Read only store.", parentRef);
|
||||||
}
|
}
|
||||||
Pair<Integer, String> childVersionPath = AVMNodeConverter.ToAVMVersionPath(parentRef);
|
Pair<Integer, String> childVersionPath = AVMNodeConverter.ToAVMVersionPath(childRef);
|
||||||
if (childVersionPath.getFirst() >= 0)
|
if (childVersionPath.getFirst() >= 0)
|
||||||
{
|
{
|
||||||
throw new InvalidNodeRefException("Read only store.", childRef);
|
throw new InvalidNodeRefException("Read only store.", childRef);
|
||||||
|
@@ -19,6 +19,7 @@ package org.alfresco.repo.avm.actions;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.alfresco.config.JNDIConstants;
|
||||||
import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
|
import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
|
||||||
import org.alfresco.repo.avm.AVMDAOs;
|
import org.alfresco.repo.avm.AVMDAOs;
|
||||||
import org.alfresco.repo.avm.AVMNodeConverter;
|
import org.alfresco.repo.avm.AVMNodeConverter;
|
||||||
@@ -138,7 +139,7 @@ public class SimpleAVMSubmitAction extends ActionExecuterAbstractBase
|
|||||||
// Cleanup by flattening the source relative to the destination.
|
// Cleanup by flattening the source relative to the destination.
|
||||||
// This is an ugliness to prevent database write misorderings in flatten.
|
// This is an ugliness to prevent database write misorderings in flatten.
|
||||||
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
||||||
fAVMSyncService.flatten(storePath[0] + ":/appBase", websiteName + "-staging:/appBase");
|
fAVMSyncService.flatten(storePath[0] + ":/" + JNDIConstants.DIR_DEFAULT_WWW, websiteName + "-staging:/" + JNDIConstants.DIR_DEFAULT_WWW);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user