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

Method CommitKuduTransaction

be/src/service/client-request-state.cc:2256–2277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254}
2255
2256Status ClientRequestState::CommitKuduTransaction() {
2257 DCHECK(InKuduTransaction());
2258 // Skip calling Commit() for Kudu Transaction with a debug action so that test code
2259 // could explicitly control over calling Commit().
2260 Status status = DebugAction(exec_request().query_options, "CRS_NOT_COMMIT_KUDU_TXN");
2261 if (UNLIKELY(!status.ok())) {
2262 VLOG(1) << Substitute("Skip to commit Kudu transaction with query-id: $0",
2263 PrintId(query_ctx_.query_id));
2264 transaction_closed_ = true;
2265 return Status::OK();
2266 }
2267
2268 status = frontend_->CommitKuduTransaction(query_ctx_.query_id);
2269 if (status.ok()) {
2270 query_events_->MarkEvent("Kudu transaction committed");
2271 transaction_closed_ = true;
2272 } else {
2273 VLOG(1) << Substitute("Unable to commit Kudu transaction with query-id: $0",
2274 PrintId(query_ctx_.query_id));
2275 }
2276 return status;
2277}
2278
2279void ClientRequestState::LogQueryEvents() {
2280 // Wait until the results are available. This guarantees the completion of non QUERY

Callers

nothing calls this directly

Calls 6

DebugActionFunction · 0.85
SubstituteFunction · 0.85
PrintIdFunction · 0.85
OKFunction · 0.85
MarkEventMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected