Skip to content

Decide on chunked file transfer in the executor FileService #2770

Description

@blkt

FileService (#2689) moves whole files in single unary messages: ReadFile returns the content, and CreateFile and ReplaceFile send it. A file can be up to executionenv.MaxFileBytes (5 MiB), above gRPC's 4 MiB default message size, so today both ends must raise the message limit, as the existing provider and client already do with MaxMessageBytes (8 MiB).

Moving file content to chunked streaming is a breaking change to mecatl.executor.v1. It is cheap now and expensive once the in-memory implementation (#2691), the Files server (#2694), the proxy (#2701) and the client (#2710) are built on the unary shape, so it should be settled before those start.

Decide

  • Whether ReadFile, CreateFile and ReplaceFile stream content in chunks, or stay unary with the raised message limit as a documented requirement for every server and client.
  • If streaming: chunk size, where the version and expected version travel (first or last message), and how a write that fails midway leaves the file (create-only and CAS semantics must hold: nothing is written unless the whole content arrived and the version still matches).
  • Whether the file tools and Workspace port read and write in chunks too, or the trusted service assembles whole files at the edge.

Acceptance criteria

Activity

  1. added theissue type on Nov 12, 2026
  2. self-assigned this
    on Nov 17, 2026
  3. added 4 commits that reference this issue on Nov 17, 2026
    175bf4c
    4353a25
    c859122
    370b2c8
  4. added a commit that references this issue on Nov 18, 2026
    e4f7016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions