RETIRED, Gerrit as used by OpenStack
Go to file
Olga Grinberg 903be04b02 Delete a change from the index when it is not in the DB
If for some reason the secondary index is out of date, i.e. the  change
was deleted from the database but wasn't deleted from the secondary
index, it was impossible to re-index (remove) that change.

Add logic to automatically remove the change from the secondary index
if this change is requested through the Change REST API endpoint and
doesn't exist in the database.

If a user click on search result from a stale change, he will a get a
404 page and the change will be removed from the index.

To fix the problem without opening the change page, run a command like:
curl --user <user name>  -X POST http://<host>:<port>/a/changes/<change id>/index

Issue: 2996
Change-Id: I1db5373e31585e99c5f45e05274d86d69b4f24e6
2014-11-12 17:03:41 +00:00
.settings Eclipse: Bump java source and target level to 7 2013-11-29 00:15:50 +01:00
contrib Allow to download reposize.sh script from Gerrit 2014-05-09 16:20:51 +02:00
Documentation Allow to raise BooleanQuery limit in gerrit.config. 2014-10-21 14:33:57 +00:00
gerrit-acceptance-tests Disable Gitweb for in-memory acceptance tests 2014-10-21 15:04:39 -04:00
gerrit-antlr Remove unused .gitignore 2013-11-28 22:56:51 -08:00
gerrit-cache-h2 Merge "Remove unused @SuppressWarnings" 2013-11-29 08:08:53 +00:00
gerrit-common Remove fixed limit of results returned by secondary index query 2014-09-08 15:23:51 +00:00
gerrit-extension-api Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-gwtdebug Prevent StackOverflowError in JettyTreeLogger 2014-02-07 12:54:18 +00:00
gerrit-gwtexpui Change CopyableLabel to hide onKeyUp 2014-05-12 18:08:56 -05:00
gerrit-gwtui SideBySide2: Correct placement of column margin bar 2014-11-07 10:31:31 +09:00
gerrit-gwtui-common Introduce Gerrit gwtui common project 2014-02-17 22:54:00 +01:00
gerrit-httpd Fix JS plugin load when using non-root Gerrit URLs 2014-09-08 15:52:13 +00:00
gerrit-launcher Use public getter to retrieve name from JarFile 2014-03-18 23:16:35 +01:00
gerrit-lucene Delete a change from the index when it is not in the DB 2014-11-12 17:03:41 +00:00
gerrit-main Build Main for Java 1.2 2013-11-30 01:53:00 -08:00
gerrit-openid Bump Jetty version to stable 9.1 and Servlet API to 3.1 2014-01-04 22:28:10 +01:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Apply "type inference for generic instance creation" Java 7 feature 2014-01-25 17:51:08 +01:00
gerrit-pgm Merge changes from topic 'sshd-upgrade' into stable-2.9 2014-11-11 18:20:54 +00:00
gerrit-plugin-api Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-plugin-archetype Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-plugin-gwt-archetype Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-plugin-gwtui Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-plugin-js-archetype Set version to 2.9.1 2014-09-09 15:29:08 +02:00
gerrit-prettify Correct fix for potential NPE in PrettyFormatter 2014-03-04 11:14:56 +01:00
gerrit-reviewdb MergeabilityChecker: Fix isStale() optimization 2014-06-14 15:25:20 +02:00
gerrit-server Delete a change from the index when it is not in the DB 2014-11-12 17:03:41 +00:00
gerrit-solr Delete a change from the index when it is not in the DB 2014-11-12 17:03:41 +00:00
gerrit-sshd Don't require secondary index when running daemon in slave mode 2014-09-08 17:41:44 +02:00
gerrit-util-cli Save GWT compile time by avoiding javac 2013-11-30 11:06:50 -08:00
gerrit-util-ssl Remove unused .gitignore 2013-11-28 22:56:51 -08:00
gerrit-war Set version to 2.9.1 2014-09-09 15:29:08 +02:00
lib SSHD: Update to 0.13.0 2014-11-06 22:37:15 +09:00
plugins Update replication plugin to latest revision 2014-10-23 17:40:17 +09:00
ReleaseNotes Fix ordering of 2.9.x releases in the release notes index. 2014-10-22 19:14:59 +09:00
tools Merge "Gracefully handle buck audit failure" into stable-2.9 2014-09-05 09:10:37 +00:00
website/releases Exclude gerrit-snapshot-* from releases page 2014-02-19 05:56:00 +00:00
.buckconfig Move gerrit.war from api_{install,deploy} to war_{install,deploy} 2014-05-20 06:41:08 +00:00
.buckversion Update Buck 2013-11-29 10:50:59 -08:00
.gitignore Buck: Deploy plugin artifacts to Maven Central 2014-05-26 22:06:42 +02:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.pydevproject Set python version back to 2.6.5 in .pydevproject 2013-05-20 11:36:08 +09:00
BUCK Merge branch 'stable-2.8' into stable-2.9 2014-05-01 12:44:01 -07:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Set version to 2.9.1 2014-09-09 15:29:08 +02:00