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

Method ResetMetadata

be/src/catalog/catalog-server.cc:424–437  ·  view source on GitHub ↗

Executes a TResetMetadataRequest and returns details on the result of the operation.

Source from the content-addressed store, hash-verified

422
423 // Executes a TResetMetadataRequest and returns details on the result of the operation.
424 void ResetMetadata(TResetMetadataResponse& resp, const TResetMetadataRequest& req)
425 override {
426 VLOG_RPC << "ResetMetadata(): request=" << ThriftDebugString(req);
427 DebugActionNoFail(FLAGS_debug_actions, "RESET_METADATA_DELAY");
428 Status status = AcceptRequest(req.protocol_version);
429 if (status.ok()) {
430 status = catalog_server_->catalog()->ResetMetadata(req, &resp);
431 }
432 if (!status.ok()) LOG(ERROR) << status.GetDetail();
433 TStatus thrift_status;
434 StatusToThrift(status, &thrift_status);
435 resp.result.__set_status(thrift_status);
436 VLOG_RPC << "ResetMetadata(): response=" << ThriftDebugString(resp);
437 }
438
439 // Executes a TUpdateCatalogRequest and returns details on the result of the
440 // operation.

Callers 1

TriggerResetMetadataMethod · 0.45

Calls 6

ThriftDebugStringFunction · 0.85
DebugActionNoFailFunction · 0.85
StatusToThriftFunction · 0.85
GetDetailMethod · 0.80
okMethod · 0.45
catalogMethod · 0.45

Tested by

no test coverage detected