mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
system_schema.tables and system_schema.columns must have content for every existing table. To detect a failed load of a table, before attempting to invoke `db::schema_tables::create_table_from_mutations()`, we check for the mutations read from these two tables, to not be disengaged. There is another failure scenario however. The mutations are not null, but do not have any clustering rows. This currently results in a cryptic error message, about failing to lookup a row in a result-set. This happens when the lookup-up keyspace exists, but the table doesn't. Add this to the check, so we get a human-readeable error message when this happens.