Skip to content

refactor(project): Prevent concurrent writes to cache DB#1415

Merged
matz3 merged 5 commits into
mainfrom
refactor/CacheManager
Jun 17, 2026
Merged

refactor(project): Prevent concurrent writes to cache DB#1415
matz3 merged 5 commits into
mainfrom
refactor/CacheManager

Conversation

@matz3

@matz3 matz3 commented Jun 16, 2026

Copy link
Copy Markdown
Member
  • Make APIs sync that do not need async behaviour
  • Prevent concurrent access to DB (especially for batch transactions) by splitting async work from sync DB access

JIRA: CPOUI5FOUNDATION-1207

matz3 added 5 commits June 16, 2026 15:18
The metadata read/write methods on CacheManager only delegate to
synchronous BuildCacheStorage calls (DatabaseSync, gzipSync).

Callers in ProjectBuildCache still await these calls; awaiting a
non-Promise is a no-op, so behavior is unchanged.
…iting

Splits up the (partially async) preparation of cache entries from the
sync DB writing access so that transactions are executed in sync code.
@matz3 matz3 changed the title refactor(project): CacheManager / ProjectBuildCache refactor(project): Prevent concurrent writes to cache DB Jun 16, 2026
@matz3 matz3 marked this pull request as ready for review June 16, 2026 13:40
@matz3 matz3 requested a review from a team June 16, 2026 13:40
@matz3 matz3 force-pushed the refactor/CacheManager branch from defc5ce to fe2c38e Compare June 16, 2026 18:38
Comment thread packages/project/lib/build/cache/BuildCacheStorage.js
@matz3 matz3 merged commit cb5e66a into main Jun 17, 2026
59 checks passed
@matz3 matz3 deleted the refactor/CacheManager branch June 17, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants