Frequent Error 500 When Searching with Multiple Labels and created_desc for Issues

Summary

I have a bookmark for the following links to search for issues in Category:Vulnerability Management and general issues in ~"Accepting merge requests". Most of the times after searching I encounter an Error 500. In these cases, the loading takes a longer-than-usual time (didn't measure how long it takes yet).

Steps to reproduce

This might be difficult to reproduce because when you retry it works again. That seems to me as if some form of time-bound caching is involved.

  1. Open one of the links
  2. See the error 500 (500 Whoops, something went wrong on our end.)

OR

  1. Open one of the links
  2. Search for an additional label, so that the result still contains more than one page of issues
  3. If you don't see the error, change the filter direction (Created ascending <-> descending)
  4. See the error 500

Example Project

The bug happens in gitlab-org/gitlab (so this project), possibly related to the big number of issues (and related MRs/labels?).

What is the current bug behavior?

I encounter Error 500s for complex searches.

What is the expected correct behavior?

I can search for issues without encountering errors.

Relevant logs and/or screenshots

image image

Output of checks

This bug happens on GitLab.com.

Possible fixes

Edited by Kev