You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Materialize workflows can be created with target_table specified as a non-existent table, but then can't be cancelled.
Reproduction Steps
Schema:
create table foo (id1 int not null, id2 int not null, primary key(id1));
Create Materialize workflow:
~/bin $ ./vtctldclient --server localhost:15999 Materialize \
> --workflow foo_materialize_0 \
> --target-keyspace rbranson-materialize \
> create \
> --source-keyspace rbranson-materialize \
> --table-settings '[{"target_table": "table_that_doesnt_exist", "create_ddl": "create table foo_id1_counts (id1 int not null, cnt bigint, primary key (id1))", "source_expression": "select id1, count(*) as cnt f
rom foo group by id1"}]' \
> --tablet-types primary
Materialization workflow foo_materialize_0 successfully created in the rbranson-materialize keyspace. Use show to view the status.
This breaks because the table "table_that_doesnt_exist" doesn't exist, which is immediately obvious by using show to view the workflow status. However, it's then not possible to cancel the workflow:
~/bin $ ./vtctldclient --server localhost:15999 Materialize --workflow foo_materialize_0 --target-keyspace rbranson-materialize cancel
Successfully cancelled the foo_materialize_0 workflow in the rbranson-materialize keyspace
Binary Version
vtgate version Version: 18.0.0-SNAPSHOT (Git revision 51962e957063c7e386a1911ca36f6c3eeaf01bcd branch 'latest-18.0') built on Tue Jun 25 05:04:44 UTC 2024 by vitess@buildkitsandbox using go1.21.11 linux/amd64
Overview of the Issue
Materialize workflows can be created with
target_table
specified as a non-existent table, but then can't be cancelled.Reproduction Steps
Schema:
Create Materialize workflow:
This breaks because the table "table_that_doesnt_exist" doesn't exist, which is immediately obvious by using show to view the workflow status. However, it's then not possible to cancel the workflow:
Attempt to cancel:
To workaround, create the non-existent table:
Now it can be cancelled:
Binary Version
vtgate version Version: 18.0.0-SNAPSHOT (Git revision 51962e957063c7e386a1911ca36f6c3eeaf01bcd branch 'latest-18.0') built on Tue Jun 25 05:04:44 UTC 2024 by vitess@buildkitsandbox using go1.21.11 linux/amd64
Operating System and Environment details
The text was updated successfully, but these errors were encountered: