jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/365178 )
Change subject: Update for ElasticSearch 5.x
......................................................................
Update for ElasticSearch 5.x
Bug: T164842
Change-Id: I2a23b5bd4d3038728b3b9d4c6ff37648193f55bb
---
M requirements.txt
M stashbot/es.py
2 files changed, 2 insertions(+), 3 deletions(-)
Approvals:
BryanDavis: Checked; Looks good to me, approved
jenkins-bot: Verified
diff --git a/requirements.txt b/requirements.txt
index 5767947..733e0c3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-elasticsearch>=1.0.0,<2.0.0
+elasticsearch>=5.0.0,<6.0.0
ib3==0.1.0
irc>=15.0.3
ldap3==1.4.0
diff --git a/stashbot/es.py b/stashbot/es.py
index f84cf5c..fc78c62 100644
--- a/stashbot/es.py
+++ b/stashbot/es.py
@@ -47,8 +47,7 @@
"""Store a document in Elasticsearch."""
try:
return self.es.index(
- index=index, doc_type=doc_type, body=body,
- consistency="one")
+ index=index, doc_type=doc_type, body=body)
except elasticsearch.ConnectionError as e:
self.logger.exception(
'Failed to log to elasticsearch: %s', e.error)
--
To view, visit https://gerrit.wikimedia.org/r/365178
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2a23b5bd4d3038728b3b9d4c6ff37648193f55bb
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/stashbot
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits