Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(query): support query level async backtrace #13457

Merged

Conversation

zhang2014
Copy link
Member

@zhang2014 zhang2014 commented Oct 26, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

feat(query): support query level async backtrace

  • Closes #issue

This change is Reviewable

@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
databend ⬜️ Ignored (Inspect) Visit Preview Nov 2, 2023 11:47am

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Oct 26, 2023
@zhang2014 zhang2014 added the ci-benchmark Benchmark: run all test label Oct 26, 2023
@github-actions
Copy link
Contributor

Docker Image for PR

  • tag: pr-13457-df28f17

note: this image tag is only available for internal use,
please check the internal doc for more details.

@github-actions
Copy link
Contributor

@zhang2014
Copy link
Member Author

zhang2014 commented Oct 31, 2023

SELECT
  query_id,
  stack
FROM
  system.backtrace
WHERE
  query_id != 'Global'

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│               query_id               │                                                                                      stack                                                                                     │
│                String                │                                                                                     String                                                                                     │
├──────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │   └╼ databend_query::api::rpc::exchange::exchange_source_reader::ExchangeSourceReader::async_process at src/query/service/src/api/rpc/exchange/exchange_source_reader.rs:109:5 │
│                                      │      └╼ databend_query::api::rpc::flight_client::FlightReceiver::recv at src/query/service/src/api/rpc/flight_client.rs:194:5                                                  │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │   └╼ databend_query::api::rpc::flight_client::FlightReceiver::recv at src/query/service/src/api/rpc/flight_client.rs:194:5                                                     │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │   └╼ databend_query::api::rpc::flight_client::FlightReceiver::recv at src/query/service/src/api/rpc/flight_client.rs:194:5                                                     │
│                                      │                                                                                                                                                                                │
│ 3decd5b2-c549-4014-a35e-568189a1b569 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ 4ec97e71-4d20-4185-8b76-64c91624239b │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │   └┈ [POLLING]                                                                                                                                                                 │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
│ f9ffbb22-633c-49eb-8169-24feda276c95 │ ╼ common_base::runtime::runtime::Runtime::spawn at src/common/base/src/runtime/runtime.rs:298:17                                                                               │
│                                      │                                                                                                                                                                                │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Conflicts:
#	src/query/service/src/pipelines/executor/executor_graph.rs
@zhang2014 zhang2014 marked this pull request as ready for review November 2, 2023 01:41
@BohuTANG BohuTANG added ci-benchmark Benchmark: run all test and removed ci-benchmark Benchmark: run all test labels Nov 2, 2023
Copy link
Contributor

github-actions bot commented Nov 2, 2023

Docker Image for PR

  • tag: pr-13457-e417740

note: this image tag is only available for internal use,
please check the internal doc for more details.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Docker Image for PR

  • tag: pr-13457-4b063fa

note: this image tag is only available for internal use,
please check the internal doc for more details.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

@zhang2014 zhang2014 added ci-benchmark Benchmark: run all test and removed ci-benchmark Benchmark: run all test labels Nov 2, 2023
Copy link
Contributor

github-actions bot commented Nov 2, 2023

Docker Image for PR

  • tag: pr-13457-fe60445

note: this image tag is only available for internal use,
please check the internal doc for more details.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

# Conflicts:
#	src/query/ee_features/table_lock/src/table_lock_heartbeat.rs
@zhang2014 zhang2014 enabled auto-merge November 2, 2023 11:47
@zhang2014 zhang2014 added this pull request to the merge queue Nov 2, 2023
@BohuTANG BohuTANG removed this pull request from the merge queue due to a manual request Nov 2, 2023
@BohuTANG BohuTANG merged commit 23b4684 into databendlabs:main Nov 2, 2023
62 checks passed
andylokandy pushed a commit to andylokandy/databend that referenced this pull request Nov 27, 2023
* feat(query): support query level async backtrace

* feat(query): support query level async backtrace

* feat(query): support query level async backtrace

* feat(query): support query level async backtrace

* feat(query): support query level async backtrace

* feat(query): support query level async backtrace

---------

Co-authored-by: BohuTANG <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-benchmark Benchmark: run all test pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants