gerrit/gerrit-lucene
Shawn Pearce 2797e9ac1b Write each Lucene index using a dedicated background thread
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: I54296d62fd9206b2ed2bbcbd5bbcc941890206a3
2016-08-02 08:44:48 -04:00
..
src/main/java/com/google/gerrit/lucene Write each Lucene index using a dedicated background thread 2016-08-02 08:44:48 -04:00
BUCK Buck: Remove jgit cell 2016-04-20 22:02:49 +02:00
BUILD Implement Bazel build 2016-06-14 21:12:02 +02:00