12 Commits

Author SHA1 Message Date
David Shevitz
e369eeee95 Clear up syntax for command reference files
Change-Id: I687a0efcb603912a96406876f8f987512d46e449
2018-09-26 12:31:46 -07:00
David Pursehouse
9f90c7c5e8 Mention groups and projects indices in documentation of index start command
Bug: Issue 8629
Change-Id: I61317f6485962069729166b601a109706e71a0a1
2018-03-27 20:21:29 +00:00
Khai Do
e0169d1e78 doc update: how to get online index status info
Change-Id: I0fedb0b9c76ce804ef62d1a5b364321c5f059abc
2016-08-15 13:57:37 -07:00
Khai Do
b9a5d00e15 Add an optional flag to force an online reindex
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
2016-08-02 14:09:12 -07:00
Khai Do
d9cda09116 doc: add option and example section to ssh index command
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
2016-07-20 09:50:05 -07:00
Michael Ochmann
e2d76a1c23 Fix broken synopsis formatting in documentation
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>
2016-07-06 10:54:42 +02:00
David Pursehouse
d29e0194d6 Merge branch 'stable-2.12'
* 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
2016-04-27 22:19:40 +09:00
Dave Borowitz
7e638dc280 Support generic indexes in LuceneVersionManager
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
2016-04-26 07:52:36 +00:00
Hugo Arès
cc6a47b12f Fix index-activate and index-start documentation
Remove usage of @SSH_PORT@ and @SSH_HOST@ macros. These macros are
working for plugins but not for core documentation.

Change-Id: I3b5a2f7096dda38090a3ae362ae8da75e3e03573
2016-04-19 00:17:32 +00:00
Michael Zhou
6247b52f41 Revert "Support generic indexes in LuceneVersionManager"
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
2016-03-25 21:20:01 +00:00
Dave Borowitz
1762bacf0c Support generic indexes in LuceneVersionManager
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
2016-03-20 10:29:58 +01:00
Hugo Arès
3a593351d6 Add ssh command to restart online indexer
In case the online indexer fails, this command allows admin to restart
it without having to restart Gerrit.

Change-Id: I73435de62c357537d173c5eafd6ad60d3b49fc73
2015-07-09 08:05:11 -04:00