1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00
phorge-phorge/src/applications/search
Mukunda Modell cb1d904654 Make sure writes go to the right cluster
Summary:
Two little issues

1. there was an extra call to getHostForWrite,
2. The engine instance was shared between multiple service definitions so it
was overwriting the list of writable hosts from one service with hosts from another.

Test Plan:
tested in wikimedia production with multiple services defined like this:

```language=json
 [
        {
          "hosts": [
            {
              "host": "search.svc.codfw.wmnet",
              "protocol": "https",
              "roles": {
                "read": true,
                "write": true
              },
              "version": 5
            }
          ],
          "path": "/phabricator",
          "port": 9243,
          "type": "elasticsearch"
        },
        {
          "hosts": [
            {
              "host": "search.svc.eqiad.wmnet",
              "protocol": "https",
              "roles": {
                "read": true,
                "write": true
              },
              "version": 5
            }
          ],
          "path": "/phabricator",
          "port": 9243,
          "type": "elasticsearch"
        }
      ]
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D17581
2017-03-30 18:08:05 +00:00
..
application Convert Maniphest merge operations to modern Relationship code 2016-06-30 08:35:45 -07:00
applicationpanel Rename "SearchEngine" to "FulltextStorageEngine" 2015-12-21 17:26:19 -08:00
buckets Use new Differential bucketing logic on default (non-dashboard) homepage 2016-05-19 15:20:39 -07:00
constants Support multiple fulltext search clusters with 'cluster.search' config 2017-03-26 08:16:47 +00:00
controller Correct spelling of "Dasbhoard" 2017-03-28 10:04:26 -07:00
editor Validate menu item fields (links, projects, dashboards, applications, forms, etc) 2017-01-20 11:58:25 -08:00
engine Remove PhabricatorSearchEngineTestCase 2017-03-28 13:57:55 -07:00
engineextension Redesign Config Application 2016-08-29 15:49:49 -07:00
exception Allow administrators to get a list of users who don't have MFA configured 2017-03-15 17:49:01 -07:00
field Prevent use of the "quality" constraint in the Badge search API 2017-03-09 12:26:58 -08:00
fulltextstorage Make sure writes go to the right cluster 2017-03-30 18:08:05 +00:00
index Support multiple fulltext search clusters with 'cluster.search' config 2017-03-26 08:16:47 +00:00
interface Prepare Profile Panels for adoption in other applications 2016-01-15 09:12:53 -08:00
management Re-run config validation from bin/search 2017-03-28 14:53:26 -07:00
menuitem Add ActionIcon to PHUIListItemView, use in Dashboards 2017-03-16 11:32:16 -07:00
ngrams Implement basic ngram search for Owners Package names 2015-12-22 08:00:33 -08:00
phidtype Rename "ProfilePanelConfiguration" to "ProfileMenuItemConfiguration" 2016-12-11 11:44:22 -08:00
query Support multiple fulltext search clusters with 'cluster.search' config 2017-03-26 08:16:47 +00:00
relationship Render parent and child tasks in Maniphest with a graph trace 2016-07-01 10:41:07 -07:00
storage Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
typeahead Added application name to the typeahead results for doc type search 2016-08-25 11:26:49 -04:00
view Allow users to drop .ics files on calendar views to import them 2016-10-18 15:26:44 -07:00
worker Convert all "DocumentIndexers" into "FulltextEngines" 2015-12-21 17:25:23 -08:00