28 namespace system_validator {
30 const std::vector<Catalog_Namespace::TableEpochInfo>& table_epochs,
31 const std::string& table_name,
32 const bool is_cluster_validation);
44 const bool is_repair_type_remove,
56 throw std::runtime_error{
57 "Unexpected validation type specified. Only the \"VALIDATE CLUSTER;\" command "
58 "is currently supported."};
70 std::string
validateEpochs(
const std::vector<TTableMeta>& table_meta_vector)
const;
88 throw std::runtime_error{
89 "Unexpected validation type specified. Only the \"VALIDATE;\" command is "
90 "currently supported."};
std::string validate() const
class for a per-database catalog. also includes metadata for the current database and the current use...
const bool is_repair_type_remove_
LeafAggregator & leaf_aggregator_
Catalog_Namespace::Catalog & catalog_
Catalog_Namespace::Catalog & cat_
std::string validate_table_epochs(const std::vector< Catalog_Namespace::TableEpochInfo > &table_epochs, const std::string &table_name, const bool is_cluster_validation)
Driver for running validation on a single node.
This file contains the class specification and related data structures for Catalog.
std::string validate(query_state::QueryStateProxy query_state_proxy) const
Compares Aggregators and Leaves metatdata reporting what is different.
const Catalog_Namespace::SessionInfo session_info_
Driver for running distributed validation on metadata across cluster. DistributedValidate provides fu...
bool should_validate_epoch(const TableDescriptor *table_descriptor)
DistributedValidate(const std::string &type, const bool is_repair_type_remove, Catalog_Namespace::Catalog &cat, LeafAggregator &leaf_aggregator, const Catalog_Namespace::SessionInfo session_info, DBHandler &db_handler)
std::string validateEpochs(const std::vector< TTableMeta > &table_meta_vector) const
SingleNodeValidator(const std::string &type, Catalog_Namespace::Catalog &catalog)