mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALF-19787 RED BUILD: Build repeatedly hanging in UsageTestSuite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54799 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1603,13 +1603,12 @@ public class IndexInfo implements IndexMonitor
|
||||
while (shouldBlock())
|
||||
{
|
||||
synchronized (mergerTargetLock)
|
||||
{
|
||||
if(shouldBlock())
|
||||
{
|
||||
if (s_logger.isDebugEnabled())
|
||||
{
|
||||
s_logger.debug("THROTTLING: " + Thread.currentThread().getName() + " " + indexEntries.size());
|
||||
}
|
||||
merger.schedule();
|
||||
releaseWriteLock();
|
||||
try
|
||||
{
|
||||
@@ -1619,7 +1618,6 @@ public class IndexInfo implements IndexMonitor
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
getWriteLock();
|
||||
}
|
||||
thisThreadPreparing.set(this);
|
||||
@@ -2575,14 +2573,11 @@ public class IndexInfo implements IndexMonitor
|
||||
if (!shouldBlock())
|
||||
{
|
||||
synchronized (mergerTargetLock)
|
||||
{
|
||||
if (!shouldBlock())
|
||||
{
|
||||
mergerTargetLock.notifyAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void writeStatusToFile(FileChannel channel) throws IOException
|
||||
{
|
||||
|
Reference in New Issue
Block a user