Open d42ohpaz opened 11 years ago
It's indeed a bug. But rather than catching the exception and allowing it to continue, I'd rather test the path validity prior to run the svn log operation. And then run the operation on a revision where the path exists. I'll see what I can come up with. In the meantime, a potential workaround for you could be to increase the bulk_size parameter to a much bigger size, possibly the entire range of revisions in your repository, to ensure that the river will try to retrieve revisions from a range where the branch is garanteed to exist at one point. The log operation will only pick the revisions where paths of the branch were changed, so with a bit of luck, only a few, compared to the entire repository. Of course, it will only work if each branch that you want to index is not big enough to exhaust the heap of the elasticsearch jvm.
Thank you for the suggestion. That did the trick for indexing my branch. I definitely agree that your suggestion sounds like a better idea than mine and I look forward to when you have the opportunity to implement it.
Not sure why our repository is set up the way that it is (it predates my employment), but when trying to index the branch, it fails due to an unhandled SVNException. Would it be possible to catch and log the exception, but allow the process to continue so it can find valid revisions to index? As it stands currently, because of this, it cannot index anything from the particular branch.
My particular topology is to index trunk separate from each individual branch so that my users can cherry pick which part of the repository as a whole they wish to search.
The debug messages generated by the river are below. I did substitute the variable information due to company policies, but I do not believe that it detracts from the report. Please advise if I can provide other information to aid in this issue.
The river was created using the following cURL call: