Fix elasticsearch on version 2 or higher
AbandonedPublic

Authored by Paladox on Feb 3 2017, 12:34 AM.

Details

Reviewers
mmodell
Patch without arc
git checkout -b D549 && curl -L https://phabricator.wikimedia.org/D549?download=true | git apply
Summary

If you set your version as 5, it was trying to use _status but that wont work. So lets just use _status if we have the version set as one.

Much easier for future support.

Otherwise you get errors such as

curl http://localhost:9200/_status
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_status]"}],"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_status]"},"status":400}

Change-Id: Iaf2853e2402a1354ed1ce27205c2755e473d98e2

Diff Detail

Repository
rPHAB Phabricator
Branch
wmf/stable
Lint
Lint SkippedExcuse: Same as beofe
Unit
Unit Tests Skipped
Build Status
Buildable 1575
Build 2507: differential-jessieJenkins
Build 2506: arc lint + arc unit
Paladox created this revision.Feb 3 2017, 12:34 AM
Restricted Application added a reviewer: mmodell. · View Herald TranscriptFeb 3 2017, 12:34 AM
Paladox abandoned this revision.Feb 3 2017, 12:35 AM

Ah i see what went wrong