mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Improve deletion retry
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3446 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1796,6 +1796,7 @@ public class IndexInfo
|
||||
while (runnable)
|
||||
{
|
||||
String id = null;
|
||||
HashSet<String> fails = new HashSet<String>();
|
||||
while ((id = deleteQueue.poll()) != null)
|
||||
{
|
||||
if (s_logger.isDebugEnabled())
|
||||
@@ -1811,9 +1812,10 @@ public class IndexInfo
|
||||
s_logger.debug("DELETE FAILED");
|
||||
}
|
||||
// try again later
|
||||
deleteQueue.add(id);
|
||||
fails.add(id);
|
||||
}
|
||||
}
|
||||
deleteQueue.addAll(fails);
|
||||
synchronized (this)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user