GWicke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/194443
Change subject: Small hotfix for prod
......................................................................
Small hotfix for prod
It looks like a dead host that's still in the cluster config (restbase1006)
can slow down connection setup enough to break quorum when the first schema
requests are made. This patch merely works around the issue by lowering the
consistency needed for that request to one.
Change-Id: Id7ef794416162a9cdf0d7b7b02e8a3ae518c97cd
---
M node_modules/restbase-mod-table-cassandra/lib/db.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/restbase/deploy
refs/changes/43/194443/1
diff --git a/node_modules/restbase-mod-table-cassandra/lib/db.js
b/node_modules/restbase-mod-table-cassandra/lib/db.js
index b83fb82..1a25c4f 100644
--- a/node_modules/restbase-mod-table-cassandra/lib/db.js
+++ b/node_modules/restbase-mod-table-cassandra/lib/db.js
@@ -69,7 +69,8 @@
var schemaReq = req.extend({
query: schemaQuery,
columnfamily: 'meta',
- schema: this.infoSchemaInfo
+ schema: this.infoSchemaInfo,
+ consistency: 1
});
return this._get(schemaReq)
.then(function(res) {
--
To view, visit https://gerrit.wikimedia.org/r/194443
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id7ef794416162a9cdf0d7b7b02e8a3ae518c97cd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/restbase/deploy
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits