Bug 1317646
Summary: | Possible race condition when creating new Products | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Og Maciel <omaciel> |
Component: | WebUI | Assignee: | Christine Fouant <cfouant> |
Status: | CLOSED ERRATA | QA Contact: | Stephen Benjamin <stbenjam> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.0 | CC: | bbuckingham, cduryee, jsherril, stbenjam |
Target Milestone: | Unspecified | Keywords: | PrioBumpQA, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/14206 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 09:06:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Og Maciel
2016-03-14 18:11:30 UTC
Main causes for this are: We are indexing ALL subscriptions across the satellite after each product is created. We really just need to index the subscriptions for this individual product I would recommend also using Katello::Util::Support.active_record_retry around this to retry the indexing if it fails Created redmine issue http://projects.theforeman.org/issues/14206 from this bug Upstream bug component is WebUI ideally, we should remove all calls to reindex. barring that, reindexing should not create a race condition when being run 2x at the same time. this is related to https://bugzilla.redhat.com/show_bug.cgi?id=1318022. This bug is "indexing should not cause race condition", but other bug is "do not index at all". *** Bug 1318022 has been marked as a duplicate of this bug. *** Moving to POST since upstream bug http://projects.theforeman.org/issues/14206 has been closed ------------- Christine Fouant Applied in changeset commit:katello|97dbe26142a31ca4b993b7a6071a35b076b27fff. Verified: With a for loop: for name in `seq 1 10`; do hammer -u admin -p changeme product create --name "Product $name" --description "Concurrent product creation test" --organization-id 1 & done Note the "&" before done - the hammer commands would be run in parallel. All 10 products are created successfully. 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-2016:1500 |