Skip to content

Commit cae8c29

Browse files
committed
Merge remote-tracking branch 'magento-l3/ACP2E-2673' into ACP2E-2673
2 parents 89d5fa3 + 4f9a7c9 commit cae8c29

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,11 @@ function ($type) use ($productsTypes) {
408408
foreach ($this->dimensionCollectionFactory->create() as $dimensions) {
409409
$this->tableMaintainer->createMainTmpTable($dimensions);
410410
$temporaryTable = $this->tableMaintainer->getMainTmpTable($dimensions);
411+
$this->_emptyTable($temporaryTable);
411412
$indexer->executeByDimensions($dimensions, \SplFixedArray::fromArray($entityIds, false));
412413
$mainTable = $this->tableMaintainer->getMainTableByDimensions($dimensions);
413414
$this->_insertFromTable($temporaryTable, $mainTable);
414415
$this->deleteOutdatedData($entityIds, $temporaryTable, $mainTable);
415-
$this->_connection->dropTable($temporaryTable);
416416
}
417417
} else {
418418
// handle 3d-party indexers for backward compatibility

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Price/Action/RowsTest.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ public function testBatchProcessing()
144144
$adapter = $this->createMock(AdapterInterface::class);
145145
$adapter->method('select')->willReturn($select);
146146
$adapter->method('describeTable')->willReturn([]);
147-
$adapter->expects($this->exactly(4))->method('dropTable');
148147
$this->defaultIndexerResource->method('getConnection')->willReturn($adapter);
149148
$adapter->method('fetchAll')->with($select)->willReturn([]);
150149

@@ -194,21 +193,7 @@ public function testBatchProcessing()
194193
->method('getPrimaryKeyName')
195194
->willReturn('entity_id');
196195

197-
$actionRows = new Rows(
198-
$this->config,
199-
$this->storeManager,
200-
$this->currencyFactory,
201-
$this->localeDate,
202-
$this->dateTime,
203-
$this->catalogProductType,
204-
$this->indexerPriceFactory,
205-
$this->defaultIndexerResource,
206-
$this->tierPriceIndexResource,
207-
$this->dimensionCollectionFactory,
208-
$this->tableMaintainer,
209-
2
210-
);
211-
$actionRows->execute($ids);
196+
$this->actionRows->execute($ids);
212197
}
213198

214199
public function testDeletedProductsBatchProcessing()

app/code/Magento/Deploy/Service/DeployPackage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Deploy\Package\Package;
99
use Magento\Deploy\Package\PackageFile;
1010
use Magento\Framework\App\State as AppState;
11+
use Magento\Framework\Exception\LocalizedException;
1112
use Magento\Framework\Locale\ResolverInterface as LocaleResolver;
1213
use Magento\Framework\View\Asset\ContentProcessorException;
1314
use Magento\Deploy\Console\InputValidator;
@@ -138,6 +139,7 @@ public function deployEmulated(Package $package, array $options, $skipLogging =
138139
$this->errorsCount++;
139140
$this->logger->critical($errorMessage);
140141
$package->deleteFile($file->getFileId());
142+
throw new LocalizedException($errorMessage);
141143
} catch (\Exception $exception) {
142144
$this->logger->critical(
143145
'Compilation from source ' . $file->getSourcePath() . ' failed' . PHP_EOL . (string)$exception

0 commit comments

Comments
 (0)