Skip to content

Read-only DuckLake replicas (ducklake.read-only) #204

Description

@jrosskopf

Problem

ATTACH 'ducklake:…' is always read-write (src/database_manager.cpp). A replica serving a catalog another process writes would warm, refresh, expire snapshots and compact a catalog it does not own.

Proposal

ducklake.read-only: true:

  • appends READ_ONLY to the ATTACH;
  • forces warm-up never (existing table → ready, missing → unbuilt) and skips the audit-table DDL;
  • HeartbeatWorker::ShouldRunCacheMaintenance false: no scheduled refresh, retention or compaction;
  • config service answers 409 read_only_cache to cache refresh, update and GC.

Gap G4a of the Cloud Run review. The low-latency local-catalog variant is tracked separately (G4b, deferred).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions