You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Kurt Deschler (Code Review)" <ge...@cloudera.org> on 2023/06/01 13:24:39 UTC

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Kurt Deschler has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19966


Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/util/histogram-metric.cc
M be/src/util/runtime-profile.h
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
12 files changed, 293 insertions(+), 11 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/1
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 1
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 1:

(21 comments)

http://gerrit.cloudera.org:8080/#/c/19966/1/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/1/be/src/rpc/rpc-trace.cc@226
PS1, Line 226:           metrics_->RegisterMetric(new HistogramMetric(write_def, SIXTY_MINUTES_IN_MS, 3));
> line too long (91 > 90)
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@619
PS1, Line 619: =
> flake8: E225 missing whitespace around operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: \
> flake8: W605 invalid escape sequence '\d'
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: g
> flake8: E501 line too long (315 > 90 characters)
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
> flake8: E226 missing whitespace around arithmetic operator
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 1
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 14:39:04 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#3).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/util/histogram-metric.cc
M be/src/util/runtime-profile.h
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
12 files changed, 300 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/3
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 3
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19966/10/be/src/service/impala-server.cc
File be/src/service/impala-server.cc:

http://gerrit.cloudera.org:8080/#/c/19966/10/be/src/service/impala-server.cc@1456
PS10, Line 1456:   query_handle->UnRegisterCompletedRPCs();
I think we should move this to ClientRequestState::Finalize(). Finalize() is called from other places and those locations should also unregister the RPCs (e.g. QueryDriver::RetryQueryFromThread()). The QueryDriver::RetryQueryFromThread() case is causing the ClientRequestState destructor's DCHECK to fire.

This comes up in custom_cluster/test_query_retries.py (but is intermittent)


http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py@616
PS10, Line 616: retrics
Nit: metrics


http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py@621
PS10, Line 621: sum: " + hist_time_regex
The sum can be very large for some counters, because this test runs towards the end of our end-to-end tests. This won't reproduce if you run it by itself, but the test jobs hit an error because of this sum not matching the regex:
sum: 2h22m

See https://jenkins.impala.io/job/ubuntu-16.04-from-scratch/19470/testReport/junit/webserver.test_web_pages/TestWebPage/test_rpc_read_write_retrics/



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Jun 2023 18:03:58 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13159/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 1
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 13:47:32 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 2:

(8 comments)

http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@621
PS2, Line 621: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@622
PS2, Line 622: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@623
PS2, Line 623: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@624
PS2, Line 624: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@625
PS2, Line 625: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@626
PS2, Line 626: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@627
PS2, Line 627: +
flake8: W504 line break after binary operator


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@628
PS2, Line 628: +
flake8: W504 line break after binary operator



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 2
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 14:39:18 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#8).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
14 files changed, 347 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/8
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(8 comments)

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h@145
PS5, Line 145:     void Register();
             :     void UnRegister();
             :     bool UnRegisterCompleted(uint64_t& read_ns, uint64_t& write_ns);
Could you add a couple sentences for these APIs to describe how they are used?


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h@157
PS5, Line 157:     ~InvocationContext() {} // Use Unregister() externally
Should we DCHECK that the refcnt is zero?


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@297
PS5, Line 297: RpcEventHandle
Nit: RpcEventHandler


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@304
PS5, Line 304:   if (newCount == 0) {
             :     delete this;
             :   }
An object deleting itself is allowed but it has some limiting conditions:
https://isocpp.org/wiki/faq/freestore-mgmt#delete-this
It looks like we meet those criteria.

Not sure we need to do this, but here's a sketch of an alternative:
The alternative is to have some sort of ownership like std::shared_ptr. The initial reference would be a thread local std::shared_ptr. It would be created in getContext() and released in freeContext(). If nothing calls Register(), then the destructor would be called in freeContext(). If something calls Register(), it gets a new shared_ptr and the InvocationContext would only be freed when all of the shared_ptrs are gone. The shared_ptr can be put directly in the std::set of pending RPCs. When an entry is erased from the set, it would call the destructor if it was the last owner.

The one missing piece is that we would need a variable that tracks whether the RPC completed freeContext() has been called. This would be used to determine whether UnRegisterCompleted() should go forward.


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@311
PS5, Line 311: refcnt
Please also give this a trailing underscore to emphasize that it is a class field.


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@454
PS5, Line 454:   void RegisterRPC();
             :   void UnRegisterCompletedRPCs();
             :   void UnRegisterRemainingRPCs();
Can you add a couple lines of comment about what these do and how they are used?


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@616
PS5, Line 616:   RuntimeProfile::Counter* rpc_read_timer_;
             :   RuntimeProfile::Counter* rpc_write_timer_;
             :   RuntimeProfile::Counter* rpc_count_;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_;
Can you add a couple comments about the fields and what they are tracking?


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc
File be/src/service/client-request-state.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc@185
PS5, Line 185: ClientRequestState::~ClientRequestState() {
             :   DCHECK(wait_thread_.get() == NULL) << "BlockOnWait() needs to be called!";
             : }
Do we think that pending_rpcs_ is empty at this point? Is it something we could assert? Or do we not know that?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 00:21:07 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h@619
PS4, Line 619:   std::set<RpcEventHandler::InvocationContext*> pending_rpcs;
> For my understanding, what is a circumstance where this would contain more 
By design, entries are accumulated until the are collected by the query. Currently there is a call to collect before the new entry is registered which is done to limit memory and keep the profile updated. However, that could change in the future.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 4
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 19:00:44 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 7:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/13187/ : Initial code review checks failed. See linked job for details on the failure.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 7
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 19:58:35 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/exec/blocking-plan-root-sink.cc
File be/src/exec/blocking-plan-root-sink.cc:

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/exec/blocking-plan-root-sink.cc@71
PS6, Line 71: create_result_set_timer
We changed the name to create_result_set_timer_, so this hits a compilation issue.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 6
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 19:41:58 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13191/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 16:48:47 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/3/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/3/tests/webserver/test_web_pages.py@622
PS3, Line 622: +
> flake8: E131 continuation line unaligned for hanging indent
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 3
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 17:20:38 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 4:

(6 comments)

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/exec/buffered-plan-root-sink.cc
File be/src/exec/buffered-plan-root-sink.cc:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/exec/buffered-plan-root-sink.cc@237
PS4, Line 237:         {
             :           SCOPED_TIMER(create_result_set_timer);
             :           // Read rows from 'current_batch_' and add them to 'results'.
             :           RETURN_IF_ERROR(results->AddRows(output_expr_evals_, current_batch_.get(),
             :               current_batch_row_, num_rows_to_fetch));
             :         }
When result spooling is off, the code in blocking-plan-root-sink.cc is used. I would guess that is a common configuration in certain types of deployments, so should we have the same metrics there as well?


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc@218
PS4, Line 218:       descriptor->read_time_distribution =
             :           metrics_->RegisterMetric(new HistogramMetric(read_def, SIXTY_MINUTES_IN_MS, 3));
Does the SIXTY_MINUTES_IN_MS need to be in microseconds now that we switched from TIME_MS to TIME_US?


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc@309
PS4, Line 309: bool RpcEventHandler::InvocationContext::UnRegisterCompleted(
             :     AtomicInt64& read_elaped_ns, AtomicInt64& write_elaped_ns) {
The alternative is that this returns values via non-atomic int64_t* arguments and then the caller incorporates them into the appropriate Counter via the usual Counter interface (which modifies the atomic value). That would avoid the need to pass around references to the internal AtomicInt64 for the Counter.


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h@619
PS4, Line 619:   std::set<RpcEventHandler::InvocationContext*> pending_rpcs;
For my understanding, what is a circumstance where this would contain more than one entry? Is this related to having multiple connections fetching? Or is it more common than that?


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h@616
PS4, Line 616:   RuntimeProfile::Counter* rpc_read_timer;
             :   RuntimeProfile::Counter* rpc_write_timer;
             :   RuntimeProfile::Counter* rpc_count;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs;
Please put an underscore at the end of these field names to emphasize that they are class fields.


http://gerrit.cloudera.org:8080/#/c/19966/4/tests/query_test/test_fetch.py
File tests/query_test/test_fetch.py:

http://gerrit.cloudera.org:8080/#/c/19966/4/tests/query_test/test_fetch.py@69
PS4, Line 69:       assert re.search("RPCCount: [1-9]", runtime_profile)
            :       assert re.search("RPCReadTimer: [1-9]", runtime_profile)
            :       assert re.search("RPCWriteTimer: [1-9]", runtime_profile)
            :       assert re.search("CreateResultSetTime: [1-9]", runtime_profile)
Are there any bounds that we can put on the counters for correctness? Or can we construct a scenario where the RPC count is known?

The RPCReadTimer and RPCWriteTimer should be small, and they should not include our own execution time. For a statement with a sleep(1000) (1 second), the RPCReadTimer/RPCWriteTimer should be smaller than the sleep time.

Random academic question: If we had a statement with a sizeable sleep (5000 milliseconds), do we expect that to be included in CreateResultSetTime?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 4
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 18:22:45 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@304
PS5, Line 304:   if (newCount == 0) {
             :     delete this;
             :   }
> shared_ptr can't be used in thread local storage since it has a non-trivial
"__thread" can't handle destructors, but "thread_local" in C++11 added support for dynamic initialization / destruction and can be used with shared_ptr.

Again, this is not a blocking comment. I'm thinking through the different options for my own understanding.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 16:48:50 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#11).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/runtime/query-driver.cc
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
16 files changed, 385 insertions(+), 44 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/11
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 11
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 6:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/19966/6//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19966/6//COMMIT_MSG@16
PS6, Line 16: Read/Write 
> What is included exactly in read/write? (de)serialization of the Thrift mes
Both. We are using the using the thrift entry points where structs are read or written to the socket.

Update commit message.


http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h@64
PS6, Line 64:   /// From TProcessorEventHandler, called after all bytes were written to the calling
> nit: missing new line
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 6
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 13:28:20 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 13:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9381/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 13
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Wed, 07 Jun 2023 16:17:16 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13160/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 2
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 15:00:45 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/3/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/3/tests/webserver/test_web_pages.py@622
PS3, Line 622: +
flake8: E131 continuation line unaligned for hanging indent



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 3
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 17:18:17 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 9:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9371/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 9
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 03:49:15 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 9:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13189/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 9
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 03:52:10 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8:

(3 comments)

The GVO in progress hit a failure on a backend test (see my comment about metrics-test) and this end to end test failure:

15:28:57 [gw6] FAILED query_test/test_fetch.py::TestFetch::test_rows_sent_counters[protocol: beeswax | exec_option: {'test_replan': 1, 'batch_size': 0, 'num_nodes': 0, 'disable_codegen_rows_threshold': 0, 'disable_codegen': False, 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | table_format: parquet/none] 

It is still running, and I'll keep monitoring it for issues.

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@118
PS8, Line 118: public:
As a style point, we should avoid having multiple public/private blocks. It's better to have one unified public block and one private block.


http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@120
PS8, Line 120:   struct InvocationContext {
Style-wise, once a struct starts to have real logic and invariants, it should be a class. Struct fields are public, and there is no way to enforce invariants properly with public access.

https://google.github.io/styleguide/cppguide.html#Structs_vs._Classes


http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/util/histogram-metric.cc
File be/src/util/histogram-metric.cc:

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/util/histogram-metric.cc@154
PS8, Line 154:       << "sum: " << PrettyPrinter::Print(histogram->TotalSum(), unit) << ", "
The metrics-test backend test checks this output here:
https://github.com/apache/impala/blob/master/be/src/util/metrics-test.cc#L411
So, that will need to change to match the new output.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 22:53:28 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 6:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/13182/ : Initial code review checks failed. See linked job for details on the failure.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 6
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 13:37:13 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 9: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9371/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 9
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 09:37:10 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 11: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9376/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 11
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 06:36:07 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#12).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats.
- Read and Write time are defined from Thrift callbacks defined in
  apache::thrift::TProcessorEventHandler. Read time includes reading and
  deserializing Thrift RPC args from the transport. Write time includes
  serializing, writing, and flushing Thrift RPC args to the transport.
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/runtime/query-driver.cc
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
16 files changed, 386 insertions(+), 44 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/12
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 12
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 13: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 13
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Wed, 07 Jun 2023 21:37:32 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 11:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9376/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 11
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 01:13:11 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 12: Code-Review+1

(4 comments)

lgtm, only nits

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h@61
PS12, Line 61: rpc_counter_
This comment seems stale, I couldn't find rpc_counter_ anywhere.


http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h@132
PS12, Line 132: milliseconds
The comments still contain milliseconds while the values is now microsec


http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h@64
PS6, Line 64:   /// Map of all methods, populated lazily as they are invoked for the first time.
> Done
nit: wrong new line :)


http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.cc@248
PS12, Line 248: 
nit: extra line



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 12
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 13:50:54 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 6:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h@61
PS12, Line 61: ext returned
> This comment seems stale, I couldn't find rpc_counter_ anywhere.
Done


http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.h@132
PS12, Line 132: tion informa
> The comments still contain milliseconds while the values is now microsec
Done


http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h@64
PS6, Line 64:   /// From TProcessorEventHandler, called after all bytes were written to the calling
> nit: wrong new line :)
Done


http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/12/be/src/rpc/rpc-trace.cc@248
PS12, Line 248: 
> nit: extra line
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 6
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 16:27:13 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats.
- Read and Write time are defined from Thrift callbacks defined in
  apache::thrift::TProcessorEventHandler. Read time includes reading and
  deserializing Thrift RPC args from the transport. Write time includes
  serializing, writing, and flushing Thrift RPC args to the transport.
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
Reviewed-on: http://gerrit.cloudera.org:8080/19966
Reviewed-by: Joe McDonnell <jo...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/runtime/query-driver.cc
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
16 files changed, 386 insertions(+), 45 deletions(-)

Approvals:
  Joe McDonnell: Looks good to me, approved
  Impala Public Jenkins: Verified

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 14
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9368/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 02:19:05 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#10).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/runtime/query-driver.cc
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
16 files changed, 386 insertions(+), 44 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/10
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9372/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 22:23:59 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@140
PS8, Line 140:     /// True for TCLIService.*
             :     bool is_client_rpc;
Do we use this anywhere? Grepping through the code, I don't see anything.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 23:02:32 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(6 comments)

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/exec/buffered-plan-root-sink.cc
File be/src/exec/buffered-plan-root-sink.cc:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/exec/buffered-plan-root-sink.cc@237
PS4, Line 237:           SCOPED_TIMER(create_result_set_timer);
             :           // Read rows from 'current_batch_' and add them to 'results'.
             :           RETURN_IF_ERROR(results->AddRows(output_expr_evals_, current_batch_.get(),
             :               current_batch_row_, num_rows_to_fetch));
             :         }
             :         n
> When result spooling is off, the code in blocking-plan-root-sink.cc is used
Done


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc@218
PS4, Line 218:       descriptor->read_time_distribution =
             :           metrics_->RegisterMetric(new HistogramMetric(read_def, SIXTY_MINUTES_IN_US, 3));
> Does the SIXTY_MINUTES_IN_MS need to be in microseconds now that we switche
Done


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/rpc/rpc-trace.cc@309
PS4, Line 309: bool RpcEventHandler::InvocationContext::UnRegisterCompleted(
             :     uint64_t& read_ns, uint64_t& write_ns) {
> The alternative is that this returns values via non-atomic int64_t* argumen
Done


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h@616
PS4, Line 616:   RuntimeProfile::Counter* rpc_read_timer_;
             :   RuntimeProfile::Counter* rpc_write_timer_;
             :   RuntimeProfile::Counter* rpc_count_;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_
> Please put an underscore at the end of these field names to emphasize that 
Done


http://gerrit.cloudera.org:8080/#/c/19966/4/be/src/service/client-request-state.h@619
PS4, Line 619:   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_
> For my understanding, what is a circumstance where this would contain more 
Mostly related to the fetching case plus the existing server locking generally doesn't prevent multiple RPCs from accessing a query.


http://gerrit.cloudera.org:8080/#/c/19966/4/tests/query_test/test_fetch.py
File tests/query_test/test_fetch.py:

http://gerrit.cloudera.org:8080/#/c/19966/4/tests/query_test/test_fetch.py@69
PS4, Line 69:       assert re.search("RPCCount: [5-9]", runtime_profile)
            : 
            :       rpc_read_timer = re.search("RPCReadTimer: (.*)", runtime_profile)
            :       assert rpc_read_timer and len(rpc_read_timer.groups()) == 1
> Are there any bounds that we can put on the counters for correctness? Or ca
Added appropriate bounds. The sleep does appear to be evaluated with the result in this case so the test sets the bounds for that metric accordingly.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 21:18:41 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 12:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13208/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 12
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 13:50:27 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 13: Code-Review+2

This looks good to me. I started a GVO job for this


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 13
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Wed, 07 Jun 2023 18:52:58 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9374/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Jun 2023 21:04:13 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 3:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13165/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 3
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 17:40:04 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@616
PS5, Line 616:   RuntimeProfile::Counter* rpc_read_timer_;
             :   RuntimeProfile::Counter* rpc_write_timer_;
             :   RuntimeProfile::Counter* rpc_count_;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_;
> Can you add a couple comments about the fields and what they are tracking?
One other thing: Is the pending_rpcs_ set something that could be modified concurrently? Does it need locking? It is technically possible for two RPCs to come in from different threads.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 00:32:15 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#2).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/util/histogram-metric.cc
M be/src/util/runtime-profile.h
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
12 files changed, 301 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/2
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 2
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#7).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
14 files changed, 347 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/7
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 7
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9368/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 20:28:00 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@118
PS8, Line 118: public:
> As a style point, we should avoid having multiple public/private blocks. It
Done


http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@120
PS8, Line 120:   struct InvocationContext {
> Style-wise, once a struct starts to have real logic and invariants, it shou
I looked into this and making members private would require significant refactoring of existing logic due to functions calling through multiple levels of structs. I don't think it is worth the risk of making numerous additional changes and bloating this patch.


http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/rpc/rpc-trace.h@140
PS8, Line 140:     /// True for TCLIService.*
             :     bool is_client_rpc;
> Do we use this anywhere? Grepping through the code, I don't see anything.
Done


http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/util/histogram-metric.cc
File be/src/util/histogram-metric.cc:

http://gerrit.cloudera.org:8080/#/c/19966/8/be/src/util/histogram-metric.cc@154
PS8, Line 154:       << "sum: " << PrettyPrinter::Print(histogram->TotalSum(), unit) << ", "
> The metrics-test backend test checks this output here:
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 03:33:40 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 8:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13188/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 8
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 20:12:09 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#6).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
14 files changed, 347 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/6
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 6
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 1:

(21 comments)

http://gerrit.cloudera.org:8080/#/c/19966/1/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/1/be/src/rpc/rpc-trace.cc@226
PS1, Line 226:           metrics_->RegisterMetric(new HistogramMetric(write_def, SIXTY_MINUTES_IN_MS, 3));
line too long (91 > 90)


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@619
PS1, Line 619: =
flake8: E225 missing whitespace around operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: \
flake8: W605 invalid escape sequence '\d'


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: g
flake8: E501 line too long (315 > 90 characters)


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator


http://gerrit.cloudera.org:8080/#/c/19966/1/tests/webserver/test_web_pages.py@620
PS1, Line 620: +
flake8: E226 missing whitespace around arithmetic operator



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 1
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 13:25:35 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9372/ DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Sat, 03 Jun 2023 16:27:08 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 11:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/19966/6//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19966/6//COMMIT_MSG@16
PS6, Line 16: Read/Write 
What is included exactly in read/write? (de)serialization of the Thrift message or IO calls on the socket, or both?


http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/6/be/src/rpc/rpc-trace.h@64
PS6, Line 64:   /// Map of all methods, populated lazily as they are invoked for the first time.
nit: missing new line



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 11
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 09:08:34 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#13).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats.
- Read and Write time are defined from Thrift callbacks defined in
  apache::thrift::TProcessorEventHandler. Read time includes reading and
  deserializing Thrift RPC args from the transport. Write time includes
  serializing, writing, and flushing Thrift RPC args to the transport.
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/runtime/query-driver.cc
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
16 files changed, 386 insertions(+), 45 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/13
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 13
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#4).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/util/histogram-metric.cc
M be/src/util/runtime-profile.h
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
12 files changed, 300 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/4
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 4
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 2:

(8 comments)

http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@621
PS2, Line 621: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@622
PS2, Line 622: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@623
PS2, Line 623: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@624
PS2, Line 624: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@625
PS2, Line 625: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@626
PS2, Line 626: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@627
PS2, Line 627: +
> flake8: W504 line break after binary operator
Done


http://gerrit.cloudera.org:8080/#/c/19966/2/tests/webserver/test_web_pages.py@628
PS2, Line 628: +
> flake8: W504 line break after binary operator
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 2
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 17:17:52 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13172/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 21:40:34 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#9).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/util/histogram-metric.cc
M be/src/util/metrics-test.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
15 files changed, 367 insertions(+), 44 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/9
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 9
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 4:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13166/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 4
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Jun 2023 17:43:42 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Hello Joe McDonnell, Csaba Ringhofer, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19966

to look at the new patch set (#5).

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................

IMPALA-12176: Improve client fetch metrics

This patch makes multiple improvements to query profile and RPC metrics
to improve observability and allow more detailed analysis of where time
is being spent by client RPCs.

- A new CreateResultSetTime metric has been added to PLAN_ROOT_SINK node
  in the query profile. This timer isolates the cost to convert fetched
  rows to the client protocol.
- Read/Write time is now tracked during client RPC execution and added to
  the rpcz JSON output. A checkbox in the /rpcz Web UI page enables
  display of the Read/Write stats
- Client RPC cost is tracked on a per-query basis and displayed in the
  server profile as RPCCount, RPCReadTimer, and RPCWriteTimer
- Accuracy of RPC histograms is changed from milliseconds to microseconds

Testing:
tests added to test_fetch.py and test_web_pages.py

Change-Id: I986f3f2afac1775274895393969b270cf956b262
---
M be/src/exec/blocking-plan-root-sink.cc
M be/src/exec/buffered-plan-root-sink.cc
M be/src/exec/plan-root-sink.cc
M be/src/exec/plan-root-sink.h
M be/src/rpc/rpc-trace.cc
M be/src/rpc/rpc-trace.h
M be/src/service/client-request-state.cc
M be/src/service/client-request-state.h
M be/src/service/impala-server.cc
M be/src/util/histogram-metric.cc
M tests/query_test/test_fetch.py
M tests/webserver/test_web_pages.py
M www/rpcz.tmpl
13 files changed, 321 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/19966/5
-- 
To view, visit http://gerrit.cloudera.org:8080/19966
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/exec/plan-root-sink.h
File be/src/exec/plan-root-sink.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/exec/plan-root-sink.h@125
PS5, Line 125: create_result_set_timer
members are postfixed with _


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc
File be/src/service/client-request-state.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc@2166
PS5, Line 2166: and
typo?


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/impala-server.cc
File be/src/service/impala-server.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/impala-server.cc@1611
PS5, Line 1611:   // Update RPC Stats before every call. This will catch most of the significant RPCs.
Can you add to the function comment of GetActiveQueryHandle() that it also does time registration?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 12:45:01 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 5:

(12 comments)

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/exec/plan-root-sink.h
File be/src/exec/plan-root-sink.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/exec/plan-root-sink.h@125
PS5, Line 125: create_result_set_timer
> members are postfixed with _
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h
File be/src/rpc/rpc-trace.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h@145
PS5, Line 145:     void Register();
             :     void UnRegister();
             :     bool UnRegisterCompleted(uint64_t& read_ns, uint64_t& write_ns);
> Could you add a couple sentences for these APIs to describe how they are us
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.h@157
PS5, Line 157:     ~InvocationContext() {} // Use Unregister() externally
> Should we DCHECK that the refcnt is zero?
Not worth the extra Load() call here since destructor is private and only called by UnRegister()


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc
File be/src/rpc/rpc-trace.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@297
PS5, Line 297: RpcEventHandle
> Nit: RpcEventHandler
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@304
PS5, Line 304:   if (newCount == 0) {
             :     delete this;
             :   }
> An object deleting itself is allowed but it has some limiting conditions:
shared_ptr can't be used in thread local storage since it has a non-trivial destructor. That's actually why the custom refcnt logic is here is the first place.


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/rpc/rpc-trace.cc@311
PS5, Line 311: refcnt
> Please also give this a trailing underscore to emphasize that it is a class
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@454
PS5, Line 454:   void RegisterRPC();
             :   void UnRegisterCompletedRPCs();
             :   void UnRegisterRemainingRPCs();
> Can you add a couple lines of comment about what these do and how they are 
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@616
PS5, Line 616:   RuntimeProfile::Counter* rpc_read_timer_;
             :   RuntimeProfile::Counter* rpc_write_timer_;
             :   RuntimeProfile::Counter* rpc_count_;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_;
> One other thing: Is the pending_rpcs_ set something that could be modified 
Added locking. Looks like nothing preventing concurrent access.


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.h@616
PS5, Line 616:   RuntimeProfile::Counter* rpc_read_timer_;
             :   RuntimeProfile::Counter* rpc_write_timer_;
             :   RuntimeProfile::Counter* rpc_count_;
             :   std::set<RpcEventHandler::InvocationContext*> pending_rpcs_;
> Can you add a couple comments about the fields and what they are tracking?
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc
File be/src/service/client-request-state.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc@185
PS5, Line 185: ClientRequestState::~ClientRequestState() {
             :   DCHECK(wait_thread_.get() == NULL) << "BlockOnWait() needs to be called!";
             : }
> Do we think that pending_rpcs_ is empty at this point? Is it something we c
It should be empty as long as ImpalaServer::UnregisterQuery() is always called. Added DCHECK and UnRegisterRemainingRPCs() call here to avoid leaking memory if any path was missed.


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/client-request-state.cc@2166
PS5, Line 2166: and
> typo?
Done


http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/impala-server.cc
File be/src/service/impala-server.cc:

http://gerrit.cloudera.org:8080/#/c/19966/5/be/src/service/impala-server.cc@1611
PS5, Line 1611:   // Update RPC Stats before every call. This will catch most of the significant RPCs.
> Can you add to the function comment of GetActiveQueryHandle() that it also 
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 5
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Fri, 02 Jun 2023 13:25:44 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 11:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13205/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 11
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 01:27:45 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9374/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 02:24:12 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19966/10/be/src/service/impala-server.cc
File be/src/service/impala-server.cc:

http://gerrit.cloudera.org:8080/#/c/19966/10/be/src/service/impala-server.cc@1456
PS10, Line 1456:   query_handle->UnRegisterCompletedRPCs();
> I think we should move this to ClientRequestState::Finalize(). Finalize() i
Done


http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py
File tests/webserver/test_web_pages.py:

http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py@616
PS10, Line 616: retrics
> Nit: metrics
Done


http://gerrit.cloudera.org:8080/#/c/19966/10/tests/webserver/test_web_pages.py@621
PS10, Line 621: sum: " + hist_time_regex
> The sum can be very large for some counters, because this test runs towards
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Jun 2023 21:02:43 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 13:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13210/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 13
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Jun 2023 16:49:09 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12176: Improve client fetch metrics

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19966 )

Change subject: IMPALA-12176: Improve client fetch metrics
......................................................................


Patch Set 10:

Was there a new upload? The latest I see is patch set 10 from June 3rd.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I986f3f2afac1775274895393969b270cf956b262
Gerrit-Change-Number: 19966
Gerrit-PatchSet: 10
Gerrit-Owner: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Jun 2023 22:31:20 +0000
Gerrit-HasComments: No