Anubhav Jindal has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24502 )

Change subject: IMPALA-15107: Support Direct Thrift Upload for AI Profile 
Analyzer
......................................................................


Patch Set 8:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/service/impala-http-handler.cc
File be/src/service/impala-http-handler.cc:

http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/service/impala-http-handler.cc@554
PS8, Line 554:     status = BuildProfileJsonFromArchive(thrift_profile_archive, 
&profile_doc);
We do the expensive conversion before checking the concurrency limit. Can we 
grab a slot first so extra requests are turned away cheaply?


http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/service/query-profile-ai-analysis.cc
File be/src/service/query-profile-ai-analysis.cc:

http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/service/query-profile-ai-analysis.cc@957
PS8, Line 957:   const auto close_tracker = MakeScopeExitTrigger([&]() { 
tracker.Close(); });
Close() doesn't remove this tracker from the process tracker's child list, so 
it's left pointing at freed memory after we return. Should this be 
CloseAndUnregisterFromParent() when there's a parent?


http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/util/runtime-profile.h
File be/src/util/runtime-profile.h:

http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/util/runtime-profile.h@25
PS8, Line 25: #include <boost/function.hpp>
Is this include needed?


http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/util/webserver.cc
File be/src/util/webserver.cc:

http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/util/webserver.cc@562
PS8, Line 562:     post_body_mem_tracker_ =
This tracker never gets closed. Can we close it in the destructor like 
compressed_buffer_mem_tracker_?


http://gerrit.cloudera.org:8080/#/c/24502/8/be/src/util/webserver.cc@1018
PS8, Line 1018:     if (!post_body_mem_tracker_->TryConsume(content_len)) {
This now applies to every POST, not just uploads. When memory is tight, small 
requests like cancelling a query would fail. Can we limit it to the upload 
endpoint?



--
To view, visit http://gerrit.cloudera.org:8080/24502
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iff05c3cde7b34a56e31f020611cc33ff4e02aa32
Gerrit-Change-Number: 24502
Gerrit-PatchSet: 8
Gerrit-Owner: Gokul Kolady <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Gokul Kolady <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Comment-Date: Thu, 29 Oct 2026 01:41:49 +0000
Gerrit-HasComments: Yes

Reply via email to