As discussed on Gerrit ML[1] and in referenced issue, there are
situations where you may want to run an online reindex besides
the upgrade gerrit use case. This change allows users to force an
online reindex.
[1] https://groups.google.com/d/msg/repo-discuss/pUn8fHVh58w/icsSFef2CAAJ
feature: issue 3987
Change-Id: Ie88b7effda08996f7c0f325543be703bcf09c794
Add an options and example section to index start and index activate
commands. Update to include 'accounts' index as a valid value.
From reindex command:
~/gerrit: java -jar buck-out/gen/gerrit/gerrit.war reindex --index bogus -d gerrit_testsite
fatal: invalid index name(s): [bogus] available indices are: [accounts, changes]
Change-Id: I0500fcf1a6bc524e58fb6d56160a75599afd3ee1
Most of the cmd-xxxx.txt pages were still using the legacy 'italics'
asciidoc [1], which caused the synopsis sections to render like this:
'ssh' -p <port> 'gerrit some-command'
Furthermore, the line breaks and indentations were not rendered.
Replaced the legacy 'italics" with _italics_ in all synopsis sections
and changed the block type to [verse]. Verse blocks preserve indents
and line breaks (like <pre> in HTML), but still allow text formatting.
Fixed also some other minor mistakes and formatting errors.
[1] http://asciidoctor.org/docs/migration/#migration-cheatsheet
Change-Id: I457c5e42e3758789f29541d38d6f6c2e25532897
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
* stable-2.12:
Fix missing query results when label=0 and related relational operators
OutputStreamQuery: Only return current patch set when visible to user
Fix NPE in SubmitRuleEvaluator
Protect the TrackingFooters.extract from null input parameter
Fix index-activate and index-start documentation
Reapply: Revert "Use changeRefsById to track existing revisions"
Change-Id: I9f8e82f38c2ec4cf273a6a29c7dc634d8c28b6c1
The original change Id6c58a595 wasn't ready and broke master.
The revert was I5d56a163; this reverts the revert.
Due to a mistake in a condition in LuceneVersionManager#start()
method writer index was never initialized and thus reindexing
of changes was broken. All tests were still passing because the
tests are using SingleVersionModule and not MultiVersionModule.
This reverts commit 6247b52f4129213c62b93bd7f3e5ce9a32084978.
Change-Id: I5856d3ca2ae6d9549b00aa575abd074ea1ff0bd9
Remove usage of @SSH_PORT@ and @SSH_HOST@ macros. These macros are
working for plugins but not for core documentation.
Change-Id: I3b5a2f7096dda38090a3ae362ae8da75e3e03573
This reverts commit 1762bacf0cab5b2138432032177339a62f502dc7.
This seems to have broken master. New changes are not shown on the
ChangeScreen when pushed. git-bisect indicates that
Id6c58a595086e7dc22cbc7302169d96c4ccf1aa4 caused the problem.
Change-Id: I5d56a1630224242078b2109941adccc6d6d8d721
We now loop over all IndexDefinitions and support online reindexing
for each of them independently. They share the single configured
batch indexing threadpool, so running an arbitrary (small) number of
them shouldn't affect performance more than running one of them.
The markReady implementation still does not correctly respect multiple
indexes; this obviously needs to be fixed before adding any new index
types.
Change-Id: Id6c58a595086e7dc22cbc7302169d96c4ccf1aa4
In case the online indexer fails, this command allows admin to restart
it without having to restart Gerrit.
Change-Id: I73435de62c357537d173c5eafd6ad60d3b49fc73