We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e60bc6 commit 0d501cbCopy full SHA for 0d501cb
1 file changed
app/Jobs/ElasticSearchAliasInit.php
@@ -112,6 +112,14 @@ public function handle(HttpRequest $request) {
112
}
113
114
$json = json_decode($rawResponse, true);
115
+ if (!array_key_exists('acknowledged', $json)) {
116
+ Log::error("Missing 'acknowledged' key. Are the shared indices set up properly?");
117
+ $this->fail(
118
+ new \RuntimeException("Updating Elasticsearch aliases failed for $this->wikiId with $rawResponse")
119
+ );
120
+
121
+ return;
122
+ }
123
if ($json['acknowledged'] !== true) {
124
Log::error(__METHOD__ . ": Updating Elasticsearch aliases failed for $this->wikiId with $rawResponse");
125
$this->fail(
0 commit comments