04-08-2011 01:38 PM
04-11-2011 03:59 AM
04-11-2011 05:26 AM
id, version, store_id, uuid, transaction_id, node_deleted, type_qname_id, acl_id, audit_creator, audit_created, audit_modifier, audit_modified, audit_accessed
7, 1, 1, 'GROUP_ALFRESCO_ADMINISTRATORS', 1, b'0', 13, 4, '', '', '', '', ''
2065552, 2, 6, 'GROUP_ALFRESCO_ADMINISTRATORS', 2256992, b'0', 300, 7602, '', '', '', '', ''
6, 1, 1, 'GROUP_EMAIL_CONTRIBUTORS', 1, b'0', 13, 4, '', '', '', '', ''
2065553, 2, 6, 'GROUP_EMAIL_CONTRIBUTORS', 2256992, b'0', 300, 7602, '', '', '', '', ''
04-11-2011 08:22 AM
14:18:07,936 INFO [impl.lucene.ADMLuceneIndexerImpl] Not indexed: No transformation:
source: ContentAccessor[ contentUrl=store://2009/8/19/17/30/9617adfd-7fc8-45ef-b4e1-b8db200bc8b5.bin, mimetype=application/octet-stream, size=0, encoding=UTF-8, locale=fr_FR]
target: text/plain at /{http://www.alfresco.org/model/system/1.0}system/{http://www.alfresco.org/model/system/1.0}people/{ht...
04-11-2011 10:00 AM
15:56:26,018 INFO [node.index.IndexTransactionTracker] reindexImpl started: org.alfresco.repo.node.index.IndexTransactionTracker@32c599ac
04-11-2011 10:15 AM
J'ai rajouté un petit bout de code pour sortir de la boucle lorsque elle part en boucle infini.
==> J'arrive à démarrer mon instance.
De plus, dans le log, j'ai ça toutes les 1 secondes :15:56:26,018 INFO [node.index.IndexTransactionTracker] reindexImpl started: org.alfresco.repo.node.index.IndexTransactionTracker@32c599ac
04-11-2011 10:58 AM
protected synchronized void waitForAsynchronousReindexing()
{
ReindexWorkerRunnable lastRunnable = null;
long lastTimestamp = Long.MAX_VALUE;
long startTime = Calendar.getInstance().getTimeInMillis();
ReindexWorkerRunnable currentRunnable = peekHeadReindexWorker();
while (currentRunnable != null && !isShuttingDown())
{
long nowTime = Calendar.getInstance().getTimeInMillis();
// Notify the runnable that it is at the head of the queue
currentRunnable.setAtHeadOfQueue();
// Give the thread chance to commit
synchronized(this)
{
try { wait(100); } catch (InterruptedException e) {}
}
long currentTimestamp = currentRunnable.getLastIndexedTimestamp();
// The head of the queue holds proceedings, so it can't be allowed to continue forever
// Allow 60s of inactivity. We don't anticipate more than a few milliseconds between
// timestamp advances for the reindex threads so this checking is just for emergencies
// to prevent the queue from getting locked up.
if (lastRunnable == currentRunnable)
{
//logger.error("Equal");
if ((currentTimestamp - lastTimestamp > 60E9) || (nowTime-startTime>10000)){
try
{
reindexThreadLock.writeLock().lock();
// Double check
ReindexWorkerRunnable checkCurrentRunnable = reindexThreadQueue.peek();
if ((lastRunnable != checkCurrentRunnable) && !(nowTime-startTime>10000))
{
// It's moved on - just in time
}
else
{
loggerOnThread.info("Terminating reindex thread for inactivity: " + currentRunnable);
reindexThreadQueue.remove(currentRunnable);
currentRunnable.kill();
}
// Reset
lastRunnable = null;
lastTimestamp = Long.MAX_VALUE;
// Peek at the queue and check again
currentRunnable = reindexThreadQueue.peek();
}
finally
{
reindexThreadLock.writeLock().unlock();
}
continue;
}
// Swap timestamps
lastRunnable = currentRunnable;
lastTimestamp = currentTimestamp;
}
else
{
// Swap timestamps
lastRunnable = currentRunnable;
lastTimestamp = currentTimestamp;
}
currentRunnable = peekHeadReindexWorker();
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.