Skip to content

fix: replace renameSync with copyFileSync+unlinkSync in modelRegistryStore#75

Open
agent932 wants to merge 1 commit into
bugbasesecurity:mainfrom
agent932:fix/model-registry-ebusy-linux
Open

fix: replace renameSync with copyFileSync+unlinkSync in modelRegistryStore#75
agent932 wants to merge 1 commit into
bugbasesecurity:mainfrom
agent932:fix/model-registry-ebusy-linux

Conversation

@agent932

Copy link
Copy Markdown

renameSync fails with EBUSY (errno -16) on Linux when the target file is held open by another process or on certain bind mount configurations. copyFileSync + unlinkSync achieves the same atomic-write intent without triggering the lock condition.

Fixes model save failure on Linux Docker deployments.

…Store

renameSync fails with EBUSY (errno -16) on Linux when the target file
is held open by another process or on certain bind mount configurations.
copyFileSync + unlinkSync achieves the same atomic-write intent without
triggering the lock condition.

Fixes model save failure on Linux Docker deployments.
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.

1 participant