Open senthilengg opened 1 month ago
Hi @senthilengg. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @senthilengg,
Thanks for the report and collaboration!
We have tried to reproduce the issue in the latest 2.4-develop branch with extra_large.xml
performance toolkit.
We have 10 lakhs customers and same numbers of products. Please refer to the below screenshot:
We have followed the below steps to reproduce the issue:
Run below command for key rotation:
bin/magento encryption:key:change
Deploy again:
bin/magento setup:static-content:deploy -f
Then run bin/magento setup:upgrade
, which took some seconds to complete.
Please let us know if we missed anything.
Thanks
@engcom-Hotel Thank you for working on this issue. It was taking 30-40+ mins for a 6 million customer DB. Fundamentally speaking there is no point in setting indexer invalid for this case.
More than reproducing this issue what i would suggest as part of the Key Rotation command, it should reupdate hash of indexer so the experience will be seamless given that we know no modification to the indexer schema.
Thank you
Hello @senthilengg,
Thanks for the reply!
We have investigated this issue further. We ran bin/magento indexer:status
, which does not show any index to reindex:
After running bin/magento encryption:key:change
, we get the same index status:
After that, we ran time bin/magento setup:upgrade
, which took almost 18 mins to complete:
But as the issue description, the bin/magento encryption:key:change
command does not invalid the index status.
@engcom-Hotel Thank you for the update. The indexer will get invalidated and data get refreshed during the next deployment after the key rotation.
Step 1 : Deploy P10 patch Step 2 : Rotate Encryption Key Step 3: Deploy again with some changes (You can find all the indexer last updated date will be almost the same time)
Line of code that creates this issue : https://github.com/magento/magento2/blob/2.4.4-p10/app/code/Magento/Indexer/Setup/Recurring.php#L108
Hope this provide more details.
Preconditions and environment
No response
Steps to reproduce
Expected result
Setup Upgrade should complete it in few mins if there are no schema changes
Actual result
Setup:upgrade takes more than 30 min and increase based on the number of customers
Additional information
No response
Release note
No response
Triage and priority