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

Method update_from_query_report

tests/stress/query_runner.py:261–271  ·  view source on GitHub ↗
(self, report)

Source from the content-addressed store, hash-verified

259 status = cursor.status()
260
261 def update_from_query_report(self, report):
262 LOG.debug("Updating runtime stats (Query Runner PID: {0})".format(self.proc.pid))
263 increment(self._metrics[NUM_QUERIES_FINISHED])
264 if report.not_enough_memory:
265 increment(self._metrics[NUM_QUERIES_EXCEEDED_MEM_LIMIT])
266 if report.ac_rejected:
267 increment(self._metrics[NUM_QUERIES_AC_REJECTED])
268 if report.ac_timedout:
269 increment(self._metrics[NUM_QUERIES_AC_TIMEDOUT])
270 if report.was_cancelled:
271 increment(self._metrics[NUM_QUERIES_CANCELLED])
272
273 def _cancel(self, cursor, report):
274 if not report.query_id:

Callers 1

_start_single_runnerMethod · 0.80

Calls 3

incrementFunction · 0.90
debugMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected