Open slimsag opened 3 years ago
Heads up @joelkw @felixfbecker - the "team/code-insights" label was applied to this issue.
We hit a search limit when searching. Theoretically should never happen because we specify count:9999999 in all queries - but could happen if search is really strained for resources I guess. In this case, we log an error, record what we got, and never retry.
Just a note, any queries that hit a limit are now flagged as dirty
and exposed as metadata through the insights GraphQL API.
Leaving this issue open to address points 1, 3.
The backend's
queryrunner
runs search queries here, and there are a number of reasons that a search query could result in an error where "retrying later" is not strictly an obvious option and we have to decide what to do:repo-updater
, and record whatever results we got. No retry will happen ever again. (fixing this could possibly help resolve this.)count:9999999
in all queries - but could happen if search is really strained for resources I guess. In this case, we log an error, record what we got, and never retry.the function where these errors are produced and handled: https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+lang:go+file:insights/background/queryrunner+content:%22%29+Handle%28%22&patternType=literal