New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 2 users

Issue metadata

Status: Released
Owner: ----
Closed: Apr 2018
Cc:
Components:



Sign in to add a comment
link

Issue 8690: Two ssh commands (index changes and index projects) do not work with elasticsearch index type

Reported by borui....@gmail.com, Apr 4 2018 Project Member

Issue description

*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.14

What steps will reproduce the problem?
1. Initialize a Gerrit site with elasticsearch index type instead of lucene by default.
2. Start elasticsearch in the backend.
3. Create a test project (pj) from web UI. 
4. Create two changes (c1 and c2) from web UI.
5. From the command line, enter "ssh -p <port> <host> gerrit index changes c1 c2".
6. From the command line, enter "ssh -p <port> <host> gerrit index project pj4".
7. Query for the two changes with the term "project":"pj" through elasticsearch.

What is the expected output?
These two ssh commands should not produce any error messages as can be seen from the command line. These two changes (c1 and c2) can be found in the index through elasticsearch.

What do you see instead?
Both the commands from step 5 and 6 give the error: "fatal: gerrit: index: not found". These two changes (c1 and c2) cannot be found in the index through elasticsearch.

Please provide any additional information below.
N/a.
 

Comment 1 by marco.mm...@gmail.com, Apr 4 2018

Project Member
Components: Elasticsearch

Comment 2 by marco.mm...@gmail.com, Apr 4 2018

Project Member
Description: Show this description

Comment 3 by huga...@gmail.com, Apr 4 2018

Project Member
Status: Started (was: New)

Comment 4 by huga...@gmail.com, Apr 5 2018

Project Member
Status: ChangeUnderReview (was: Started)
https://gerrit-review.googlesource.com/#/c/gerrit/+/170110/

Comment 5 Deleted

Comment 6 by david.pu...@gmail.com, Apr 5 2018

Labels: FixedIn-2.14.8
Status: Submitted (was: ChangeUnderReview)

Comment 7 by david.pu...@gmail.com, Apr 10 2018

Cc: marco.mm...@gmail.com
 Issue 8584  has been merged into this issue.

Comment 8 by david.pu...@gmail.com, Apr 10 2018

 Issue 8585  has been merged into this issue.

Comment 9 by marco.mm...@gmail.com, Apr 10 2018

Project Member
Why did we need to merge those 2 issues into this very one? -Just so I can be clear for next time; thx.

Comment 10 by david.pu...@gmail.com, Apr 11 2018

Labels: FixedIn-2.15.2

Comment 11 by david.pu...@gmail.com, Apr 11 2018

Status: Released (was: Submitted)

Comment 12 by david.pu...@gmail.com, Apr 11 2018

Status: Submitted (was: Released)
Accidentally set to released because a search for label:FixedIn-2.15 also includes the ones with FixedIn-2.15.2

Comment 13 by david.pu...@gmail.com, Apr 20 2018

Status: Released (was: Submitted)

Sign in to add a comment