Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition running `craft project-config/sync` #4136

Open
jwilm opened this Issue Apr 12, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@jwilm
Copy link

jwilm commented Apr 12, 2019

Description

As part of our production infra, we run a couple instances of CraftCMS to ensure availability. Our original deployment process had each instance running craft project-config/sync at startup. We changed that after finding this caused a race where duplicate sections and entries were being generated in the database. The net effect was that content for such entries could not be modified.

Steps to reproduce

  1. Add a section/entry to local dev environment
  2. Run project-config/sync twice in parallel against a separate database

Given that it's a race condition, it may take a few attempts to reproduce.

Additional info

  • Craft version: 3.1.14
  • PHP version: 7.0.33
  • Database driver & version: PostgreSQL 10.3
  • Plugins & versions: n/a

@andris-sevcenko andris-sevcenko self-assigned this Apr 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.