Skip to content

Auto creating table in replicated mode should create database on all replicas #1126

@adamantal

Description

@adamantal

Using these configs:

auto.create.tables: "true"
auto.create.tables.replicated: "true"

if the database doesn't exist, it will be created, but only on the single replica that the connector is connected to. It would be great to auto-create the database on all replicas in the shard, so that the replicated tables are set up correctly afterwards.

Currently this displays an error message per replica with "database not exist" errors when the replicated tables are being created.

Probably a conditional ON CLUSTER {cluster} clause in the cluster creation query could fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions