Backported to Hammer branch: commit b96fac3780976f91b26f286f14cfc308660b0632 Author: Jason Frey <fryguy9> Date: Tue Feb 5 15:33:17 2019 -0500 Merge pull request #550 from jrafanie/ensure_one_autoloader_thread One semaphore to exclusively load them all (cherry picked from commit e75c9e08e7ccfe9dbd5c2b687303b6d981d4fd03) https://bugzilla.redhat.com/show_bug.cgi?id=1673039
Verified on 5.10.1.0. No errors while running reproducer script: # cat test.rb require_relative 'config/environment' threads = [] 4.times do threads << Thread.new { Api::Environment.time_attributes } end threads.collect(&:join) # cp test.rb /var/www/miq/vmdb/ # vmdb # for x in `seq 1 10`; do bundle exec ruby test.rb; done ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer ** CFME 5.10.1.0, codename: Hammer #
New commit detected on ManageIQ/manageiq-api/hammer: https://github.com/ManageIQ/manageiq-api/commit/b96fac3780976f91b26f286f14cfc308660b0632 commit b96fac3780976f91b26f286f14cfc308660b0632 Author: Jason Frey <fryguy9> AuthorDate: Tue Feb 5 15:33:17 2019 -0500 Commit: Jason Frey <fryguy9> CommitDate: Tue Feb 5 15:33:17 2019 -0500 Merge pull request #550 from jrafanie/ensure_one_autoloader_thread One semaphore to exclusively load them all (cherry picked from commit e75c9e08e7ccfe9dbd5c2b687303b6d981d4fd03) https://bugzilla.redhat.com/show_bug.cgi?id=1673039 lib/api/environment.rb | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0453