Aleksandr Efimov has uploaded this change for review. ( 
https://gerrit.cloudera.org/25421


Change subject: IMPALA-13940: Serialize archived plan fragments
......................................................................

IMPALA-13940: Serialize archived plan fragments

QueryStateRecord retains full TPlanFragment objects for archived
queries, but EstimateSize() counts only the outer vector. Nested
Thrift allocations can let the query log exceed
query_log_size_in_bytes.

Store fragments using compact Thrift and count their buffer
capacities. Deserialize them when rendering an archived JSON plan.

Testing:
- Release impalad build; QueryStateRecordTest.*: 10 passed.
- Compared parent and patch with 100 repeats each of wide VALUES and
  a 128-fragment query over inline data, at a 64 MiB query log limit.
  All queries completed and their archived JSON plans were readable.
  Native bytes in use immediately after the runs fell from 1.89 GiB
  to 248 MiB for VALUES and from 2.56 GiB to 968 MiB for many fragments.
- Original TPCH/HDFS case and webserver pytest were not run.

Change-Id: Id775f0ff039e3a5b87c4a43b0c44921e95fc7f7c
Assisted-by: gpt-6.1-sol
---
M be/src/service/impala-http-handler.cc
M be/src/service/impala-server.cc
M be/src/service/query-state-record-test.cc
M be/src/service/query-state-record.cc
M be/src/service/query-state-record.h
M tests/webserver/test_web_pages.py
6 files changed, 147 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/21/25421/1
--
To view, visit https://gerrit.cloudera.org/25421
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id775f0ff039e3a5b87c4a43b0c44921e95fc7f7c
Gerrit-Change-Number: 25421
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>

Reply via email to