Actions::Katello::Applicability::Hosts::BulkGenerate called many times with only a single host after sync plan runs
The user has many hosts >10K. After running a sync plan and
Actions::Katello::Applicability::Repository::Regenerateis called, BulkGenerate is called many times with a single host instead of plucking 50 hosts as it should. I'm thinking there may be some sort of race condition going on. This single host generation ends up with the user seeing many content hosts reporting no applicable content.
To reproduce, I'm thinking it would be good to first try the Regenerate action on a couple of repos that are associated to the same 10K content hosts. Perhaps there is an issue where hosts are being pushed and popped from the applicable host queue at the same time.