Querying for change returns the same change twice, with different states

48 views
Skip to first unread message

Daniele Sassoli

unread,
Sep 13, 2025, 12:05:55 PMSep 13
to Repo and Gerrit Discussion
Hi All,

I wanted to bring to your attention an issue that we've recently found for
installations using Lucene indexes. The issue report is at [1].

The issue we've observed is specific to the changes index. This index is
actually two separate indexes, "open" and "closed" changes.

When the status of a change changes, i.e. from open to merged, from open to
abandoned, etc..., changes are removed from the open index and added to the
closed index. If the deletion fails and someone queries for this change, it'll
be displayed twice, in two different states, open and closed, at the same
time!!!

This mechanism within Gerrit hasn't really changed over the last ~10 years, so
it appears weird that we only start seeing it now.

Has anyone encountered this issue and resolved it?

[1] https://issues.gerritcodereview.com/issues/440360427

Aaron Smith

unread,
Sep 22, 2025, 4:24:53 PMSep 22
to Repo and Gerrit Discussion
On Saturday, September 13, 2025 at 9:05:55 AM UTC-7 Daniele Sassoli wrote:
Hi All,

I wanted to bring to your attention an issue that we've recently found for
installations using Lucene indexes. The issue report is at [1].

The issue we've observed is specific to the changes index. This index is
actually two separate indexes, "open" and "closed" changes.

When the status of a change changes, i.e. from open to merged, from open to
abandoned, etc..., changes are removed from the open index and added to the
closed index. If the deletion fails and someone queries for this change, it'll
be displayed twice, in two different states, open and closed, at the same
time!!!

I haven't observed this...but your post is begging for a quantum computing joke. That reminds me, I need to go feed Schrödinger's cat...
Reply all
Reply to author
Forward
0 new messages