commit | 75ac1f1b99c4dd098db8565240f01522e66e0dff | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Wed Jun 26 10:21:42 2013 -0600 |
committer | Shawn Pearce <sop@google.com> | Wed Jun 26 11:07:42 2013 -0600 |
tree | d640a0657224b40980877ff43f69dab3a0cd9e8e | |
parent | e39b40a265946f2cf9cbb2f81a446005fba38217 [diff] |
Replace SearcherManager with NRTManager The NRTManager allows Gerrit to wait for a specific document mutation to be visible to searchers before trying to run a new search. The NRTManager comes with its own background thread to manage reopens, replacing the thread that reopened the index every 100 ms. The change index API now returns a ListenableFuture the caller can wait on to learn when new queries will return the updates. Change-Id: I1b3c5ba036241ffd54c88a16ee8b2ffb3d3bf5f2