commit | fdfc3738fc32eda68f444ca5b7730786f23008ff | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Mon Jun 20 02:45:00 2016 -0400 |
committer | Hector Oswaldo Caballero <hector.caballero@ericsson.com> | Wed Sep 07 16:38:58 2016 -0400 |
tree | 56ab541d00d0f875d866068d99184d5550c6ef7c | |
parent | 0d8786d34485864d0709b62c8871b022c5b65cf6 [diff] |
Write each Lucene index using a dedicated background thread Backport of I54296d62fd9206b2ed2bbcbd5bbcc941890206a3 to stable-2.12 Like searches, it is not safe to interrupt the IndexWriter. It also reads from the NIOFSDirectory which closes file handles if the thread is interrupted (such as by SSH command being Ctrl-C'd). Although IndexWriter is thread safe it is essentially single threaded. Each of these methods acquires a lock on entry, manipulates the index, and releases the lock. There isn't a lot of value in allowing these to be running on parallel threads borrowed from Gerrit. Background (and serialize) all writes onto a single thread to prevent an interrupt on the application thread from passing into Lucene code. Change-Id: I2678e1a4c106c027b02fce47d0a570f59f6dde57
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.