entity.last_installed_schema.repository has a race condition

Created on 31 May 2023, over 1 year ago

Problem/Motivation

setLastInstalledFieldStorageDefinition first reads the cache, then adds the new field storage definition then writes the database table and deletes the cache. However, another process might have read the old data and sets it into the cache after the cache delete causing the next import to lose the freshly set data.

Steps to reproduce

Way too hard.

Proposed resolution

Make setLastInstalledFieldStorageDefinition read the key-value table instead of the cache.

Remaining tasks

Should we add an update to add the missing field storages? Smartsheet over the years accumulated over a dozen and entity query against them fail.

๐Ÿ› Bug report
Status

Active

Version

10.1 โœจ

Component
Entityย  โ†’

Last updated about 15 hours ago

  • Maintained by
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @catch
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland @berdir
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany @hchonov
Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada Charlie ChX Negyesi ๐ŸCanada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024