RETIRED, Gerrit as used by OpenStack
Go to file
Dave Borowitz 0916cc3605 Replace background mergeability checks with reindexing
Now that mergeability is checked lazily using a cache upon reindexing,
we can ditch the specific mergeability-rechecking codepath and just
depend on the cache to load properly. This reduces complexity of
background merge checking in a number of pleasant ways:

 - We don't have to maintain two sets of background threadpools.
 - Since the cache loader looks at project configuration and runs
   submit rules, we don't need to guess in the ref update listener
   whether submit rules might have changed in a way that affects
   mergeability. If the cache key is the same, it's a hit; if not, it
   isn't.
 - No more --recheck-mergeable flag to reindex; checks only happen for
   those changes that are actually outdated. (We might need to trigger
   a full mergeability recheck at some point in the future, but we can
   do that by simply flushing the persistent cache.)
 - The check interface is pared down; we never actually used arbitrary
   lists of projects/branches/changes.
 - The ref updated listener can always use background priority, while
   callers indexing a single change naturally always use interactive
   priority.
 - No manual locking to avoid duplicate work; LoadingCache takes care
   of that for us.
 - Mergeable is not used by the reindexing path, so we don't need to
   explicitly turn off reindexing in that handler.

The configuration values for mergeability check threadpool sizes are
now used as fallbacks when the index threadpool sizes are not
configured.

Change-Id: I88ae7f4ad417fcba5495b2a5e4b94adf11e2a21b
2014-11-03 13:36:52 -08:00
.settings Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
bucklets Add __standalone_mode__ variable to differentiate between build modes 2014-10-10 12:28:22 +02:00
contrib Allow to download reposize.sh script from Gerrit 2014-05-09 16:20:51 +02:00
Documentation Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
gerrit-acceptance-tests Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
gerrit-antlr Allow Hashtags searches prefixed with "#". 2014-09-29 17:59:35 +02:00
gerrit-cache-h2 Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
gerrit-common Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
gerrit-extension-api Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
gerrit-gwtdebug Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
gerrit-gwtexpui Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-gwtui Enable and fix Eclipse warnings about redundant type arguments 2014-10-31 08:27:01 +00:00
gerrit-gwtui-common Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-httpd Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
gerrit-launcher Apply "type inference for generic instance creation" Java 7 feature 2014-04-26 15:27:57 +02:00
gerrit-lucene Separate change indexer threads into interactive/batch pools 2014-11-03 13:07:28 -08:00
gerrit-main Build Main for Java 1.2 2013-11-30 01:53:00 -08:00
gerrit-openid Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-pgm Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
gerrit-plugin-api Allow to create javadocs for multiple packages 2014-10-22 01:28:59 +02:00
gerrit-plugin-archetype Bump version to 2.11-SNAPSHOT 2014-07-23 12:05:35 +09:00
gerrit-plugin-gwt-archetype Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
gerrit-plugin-gwtui Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-plugin-js-archetype Bump version to 2.11-SNAPSHOT 2014-07-23 12:05:35 +09:00
gerrit-prettify Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-reviewdb Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-server Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
gerrit-solr Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-sshd Suppress unused argument warnings in unavoidable cases 2014-10-29 15:00:18 -07:00
gerrit-util-cli Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-util-http Refactor RequestUtil into a separate package 2014-10-30 15:35:26 -07:00
gerrit-util-ssl Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-war Replace background mergeability checks with reindexing 2014-11-03 13:36:52 -08:00
lib Store mergeable field from cache in index 2014-11-03 12:08:34 -08:00
plugins Update plugins 2014-10-31 18:19:48 +09:00
ReleaseNotes Update 2.11 release notes 2014-10-22 08:12:09 +00:00
tools Update Buck to recent version 2014-10-30 21:54:51 +01:00
website/releases Exclude gerrit-snapshot-* from releases page 2014-02-19 05:56:00 +00:00
.buckconfig Add buck rule to generate docs for static hosting. 2014-09-05 14:19:15 -07:00
.buckversion Update Buck to recent version 2014-10-30 21:54:51 +01:00
.gitignore Merge branch 'stable-2.9' 2014-05-27 09:58:38 +09:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.pydevproject Update PyDev project to use Python 2.7 2014-10-02 15:16:44 +09:00
.watchmanconfig Watchman: Add buck-out dir to ignored directories 2014-08-21 07:32:37 +02:00
BUCK Update Buck and use gwt_binary() 2014-05-19 11:41:31 -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 Bump version to 2.11-SNAPSHOT 2014-07-23 12:05:35 +09:00