Hi Aeham,

Other fixes in 1.7.1 fixed this particular problem, I believe.

Karl

On Fri, Oct 24, 2014 at 11:42 AM, Aeham Abushwashi <aeham.abushwashi@exonar.com> wrote:
All relevant patches from 1.7.x have been applied (to our internal 1.6.1 branch), including changes to files bundled in the same revisions as ZooKeeperConnection.java.
Crawls run without error, however, if I stop an agent whilst some crawls are still active, I get the following exception intermettintly in the output log of some nodes.


​:FATAL 2014-10-23 23:24:40,268 (Worker thread '87') - Error tossed: Can't release lock we don't hold
-java.lang.IllegalStateException: Can't release lock we don't hold
-       at org.apache.manifoldcf.core.lockmanager.ZooKeeperConnection.releaseLock(ZooKeeperConnection.java:787)
-       at org.apache.manifoldcf.core.lockmanager.ZooKeeperLockObject.clearLock(ZooKeeperLockObject.java:218)
-       at org.apache.manifoldcf.core.lockmanager.ZooKeeperLockObject.clearGlobalReadLockNoWait(ZooKeeperLockObject.java:212)
-       at org.apache.manifoldcf.core.lockmanager.LockObject.clearGlobalReadLock(LockObject.java:395)
-       at org.apache.manifoldcf.core.lockmanager.LockObject.leaveReadLock(LockObject.java:376)
-       at org.apache.manifoldcf.core.lockmanager.LockGate.leaveReadLock(LockGate.java:289)
-       at org.apache.manifoldcf.core.lockmanager.BaseLockManager.leaveRead(BaseLockManager.java:1377)
-       at org.apache.manifoldcf.core.lockmanager.BaseLockManager.leave(BaseLockManager.java:1822)
-       at org.apache.manifoldcf.core.lockmanager.BaseLockManager.leaveLocks(BaseLockManager.java:829)
-       at org.apache.manifoldcf.core.cachemanager.CacheManager.leaveCache(CacheManager.java:667)
-       at org.apache.manifoldcf.core.cachemanager.CacheManager.findObjectsAndExecute(CacheManager.java:179)
-       at org.apache.manifoldcf.agents.outputconnection.OutputConnectionManager.loadMultiple(OutputConnectionManager.java:256)
-       at org.apache.manifoldcf.agents.outputconnection.OutputConnectionManager.load(OutputConnectionManager.java:233)
-       at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.getOutputDescription(IncrementalIngester.java:311)
-       at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:311)


I don't expect many people to have my exact configuration, but was wondering if anyone on 1.7.x is seeing the same problem.