| Summary: | search can't find stuff | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Rafael Chaves <eclipse> |
| Component: | Server | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | ken_walker, libingw, mamacdon, Michael_Rennie |
| Version: | 4.0 | ||
| Target Milestone: | 5.0 M2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Rafael Chaves
I can reproduce this on OrionHub. Searching with my existing user account, I see search results in files that I created several months ago, but 0 hits from newly-created files. I think I have found the root cause here, but it is hard to be certain because I can't reproduce the problem on any smaller server. We introduced a bug during search optimization work last year, where we stopped indexing last modified time for each file. The indexer does a query based on last modified time, and if it cannot find a match this is what triggers re-indexing of a given file. By removing that index, it meant this query never returned any result, and as a result on every pass the indexer is re-indexing every file. On a smaller server this doesn't seem to hurt much, but on orionhub where the workspace is quite large the indexer can no longer keep up. This is compounded by a throttling heuristic that puts the indexer job to sleep if it consuming too much CPU time. This makes the indexer "back off" if it is doing too much work, making it hard for the indexer to ever catch up. I have released a fix to both add last modified time back to the index, and to tweak the throttling heuristic so it never backs off for too long. This could likely use further tuning for very large deployments. The fix for both is found here: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=9bbc49bb2e65b3d85812b6e953066caf102b58b3 I am leaving this open for now because I have not confirmed that this fixes the problem on orionhub. This was resolved but never closed. |