magento2: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue
Preconditions
- Magento 2.3-develop
- Sample data deployed (in order to easily have several test images in store)
Steps to reproduce
- php bin/magento catalog:images:resize
Expected result
- All 3422 images should be processed
Actual result
- Only 801 images are processed.
developer@reedling$ php bin/magento catalog:images:resize
801/3422 [======>---------------------] 23% 14 mins 58.0 MiB | /w/s/wsh12-red_main_2.jpg
Product images resized successfully
developer@reedling$
In my 2.2.6 development store which has 140 images, it always stops after exactly 100.
I can reproduce this issue on both 2.3-develop and 2.2.6.
Possible underlying Magento/Framework/DB/Query/Generator issue.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (16 by maintainers)
Commits related to this issue
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix getCountAllProductImages select and cover class with u... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix getCountAllProductImages select and cover class with u... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style; — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- ENGCOM-3292 catalog:images:resize total images count calculates incorrectly #18387: #18807 — committed to vpodorozh/magento2 by slavvka 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix unit test - now it can test also not only full batches... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix unit test - now it can test also not only full batches... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style; (cherry picked from commit 466daaa) — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- ENGCOM-3292 catalog:images:resize total images count calculates incorrectly #18387: #18807 (cherry picked from commit e1a1c7b) — committed to vpodorozh/magento2 by slavvka 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix unit test - now it can test also not only full batches... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix unit test - now it can test also not only full batches... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - remove method return type 'void' which can be used in php7... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue Ranged selects always miss the last range Fix unit test. 1... — committed to vpodorozh/magento2 by deleted user 7 years ago
- ENGCOM-3292: catalog:images:resize total images count calculates incorrectly #18387: #18807 — committed to vpodorozh/magento2 by slavvka 6 years ago
- ENGCOM-3292: catalog:images:resize total images count calculates incorrectly #18387: #18807 — committed to vpodorozh/magento2 by slavvka 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style; — committed to vpodorozh/magento2 by vpodorozh 7 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style; — committed to vpodorozh/magento2 by vpodorozh 7 years ago
- ENGCOM-3292: catalog:images:resize total images count calculates incorrectly #18387: #18807 (cherry picked from commit f38a4fc) — committed to vpodorozh/magento2 by slavvka 6 years ago
- magento/magento2#18387: catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style; (cherry picked from commit c95ce3c) — committed to vpodorozh/magento2 by vpodorozh 7 years ago
- ENGCOM-3292: catalog:images:resize total images count calculates incorrectly #18387: #18807 - Merge Pull Request magento/magento2#18807 from vpodorozh/magento2:2.3-develop-18387-catalog-images-resiz... — committed to magento/magento2 by magento-engcom-team 6 years ago
- ENGCOM-3292: catalog:images:resize total images count calculates incorrectly #18387: #18807 — committed to magento/magento2 by sidolov 6 years ago
@gwharton - you were totally right! Bug is present in 2.2-develop branch and the reason in
\Magento\Framework\DB\Query\BatchRangeIterator. This issue #12624 has fixed this problem in2.3-developbranch, however, backport to2.2-developbranch was not made. So I’ve made it in the scope of current PR https://github.com/magento/magento2/pull/18809 - you can check the fix here https://github.com/magento/magento2/pull/18809/commits/76bd08924e7e0f8a3fb88b3990623e5872b10760