Details
-
Bug
-
Resolution: Timed out
-
Low
-
3.7.0
-
None
-
Severity 3 - Minor
-
Description
Just caught it on fisheye.dev when search was performed just when the instance was started. My guess was that no repositories were started yet and MultiSearcher was initialised with empty Searchables array in MultiIndexRepositorySearcher#getSearcher
Just reproduced this locally by clearing the leakedSearchersBuilder in #getSearcher method on the breakpoint.
Exception from fisheye.dev:
[2014-12-18 13:53:54,210] ERROR fisheye Error while executing the search with 'HC-7901' java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:280) at org.apache.lucene.search.MultiSearcher.createWeight(MultiSearcher.java:307) at org.apache.lucene.search.Searcher.search(Searcher.java:88) at com.atlassian.fecru.search.common.lucene.FishEyeQuickSearcher.search(FishEyeQuickSearcher.java:110) at com.atlassian.fecru.search.common.api.QuickSearchServiceImpl.search(QuickSearchServiceImpl.java:43) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.searchForCountsOnly(QuickSearchAction.java:264) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.execute(QuickSearchAction.java:205) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) ...