Hi Maciej, It sounds like your loop condition must be somehow incorrect. You may not receive the full number of documents specified by getMaxDocumentRequest(), but rather a number less than that.
We have a number of connectors that use document batches > 1, e.g. the LiveLink connector, so this is likely not the problem. I'd recommend adding System.out.println() diagnostics to see exactly what is happening inside both getDocumentVersions() and processDocuments(). Karl On Wed, Oct 3, 2012 at 4:30 PM, Maciej Liżewski <[email protected]> wrote: > Hi, > > I have noticed strange problem with Connector (new one I am developing > right now) and getMaxDocumentRequest parameter. > When it returns 1 (default) everything seems ok, but when I set it to > anything higher (5, 10, 20) indexing job does not end but hangs when > there is only getMaxDocumentRequest documents left (when it should > process 5 documents in a row - 5 documents stays "active") > All document related functions seem written ok (they all iterate > throug passed arrays), there are no exceptions thrown (at least I do > not see any in console). > > What can be wrong and what should I look at to? any ideas? > > By the way - the new connector is for Mantis Bug tracker to index issues. > > TIA > Redguy
