Skip to content

Commit 49d2b8f

Browse files
author
Roman Hanin
committed
B2B-1832: Error when reindex Catalog Search index during the snapshot of elasticsearch
1 parent 4c6afc2 commit 49d2b8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Elasticsearch/Model/Adapter/Elasticsearch.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,14 @@ public function cleanIndex($storeId, $mappedIndexerId)
245245
do {
246246
$newIndexName = $indexPattern . (++$version);
247247
if ($this->client->indexExists($newIndexName)) {
248-
$deleteQueue []= $newIndexName;
248+
$deleteQueue[]= $newIndexName;
249249
$indexExists = true;
250250
} else {
251251
$indexExists = false;
252252
}
253253
} while ($indexExists);
254254

255+
255256
foreach ($deleteQueue as $indexToDelete) {
256257
// remove index if already exists
257258
try {

0 commit comments

Comments
 (0)