MCPcopy Create free account
hub / github.com/apache/impala / StartupChecks

Function StartupChecks

be/src/workload_mgmt/workload-management.cc:224–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224Status StartupChecks(const kudu::Version& target_schema_version) {
225 RETURN_IF_ERROR(_isVersionKnown(target_schema_version));
226
227 parsed_target_schema_version = target_schema_version;
228 LOG(INFO) << "Target workload management schema version is '"
229 << parsed_target_schema_version->ToString() << "'";
230
231 // Warn if not targeting the latest version.
232 const Version latest_schema_version = *KNOWN_VERSIONS.rbegin();
233 if (parsed_target_schema_version != latest_schema_version) {
234 LOG(WARNING) << "Target schema version '" << parsed_target_schema_version->ToString()
235 << "' is not the latest schema version '"
236 << latest_schema_version.ToString() << "'";
237 }
238
239 return Status::OK();
240} // function StartupChecks
241
242string QueryLogTableName(bool with_db) {
243 string log_table_name = FLAGS_query_log_table_name;

Callers 3

StartMethod · 0.85
TESTFunction · 0.85

Calls 4

_isVersionKnownFunction · 0.85
OKFunction · 0.85
rbeginMethod · 0.80
ToStringMethod · 0.45

Tested by 1

TESTFunction · 0.68