Skip to content

Workspaces: a rename during a cache write leaves a hidden .part file in the moved workspace #799

Description

@harenome

Priority

P3

Components

app/nullius/ondisk.py (atomic write cleanup)

Evidence

A workspace renamed just before its parse cache is replaced keeps a hidden .part file in the moved folder. The cleanup removes the temporary file by its old path (app/nullius/ondisk.py:30-33), which no longer exists. Reproduces on main.

Reproduction

  1. Workspace c, one job root.
  2. Pause a load just before the cache file is replaced.
  3. Rename c to moved in another process.
  4. Resume the load.
  5. List moved/jobs/ with hidden files.

Expected

No .part file is left behind.

Acceptance

  • A write interrupted by a rename of its folder leaves no .part file

Dependencies and related

#758, #770

Activity

  1. added
    bug
    P3
    on Dec 3, 2026
  2. added theissue type on Dec 3, 2026
  3. self-assigned this
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions