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

chore(query): spilt binary symbol #16861

Merged
merged 34 commits into from
Nov 26, 2024

Conversation

zhang2014
Copy link
Member

@zhang2014 zhang2014 commented Nov 17, 2024

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

Summary

chore(query): spilt binary symbol

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - ci build

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Nov 17, 2024
@zhang2014
Copy link
Member Author

~$ sudo dpkg -i databend_1.2.661.nightly_x86_64.deb 
(Reading database ... 110744 files and directories currently installed.)
Preparing to unpack databend_1.2.661.nightly_x86_64.deb ...
Unpacking databend (1.2.661~nightly) over (1.2.661~nightly) ...
Setting up databend (1.2.661~nightly) ...
systemd-journal:x:999:databend


$ sudo RUST_BACKTRACE=1 /usr/bin/databend-query
Databend Query start failure, cause: InvalidConfig. Code: 2002, Text = Please set your meta endpoints config: endpoints = [<your-meta-service-endpoints>].

   0: <unknown>@53b3029
   1: <unknown>@53b2fb2
   2: <unknown>@5359f2e
   3: <unknown>@53914d0
   4: <unknown>@9ca9d56
   5: <unknown>@9d6986a
   6: <unknown>@9ce6ecc
   7: <unknown>@9cf9b17
   8: <unknown>@9cd10c4
   9: <unknown>@9d1ef52
  10: <unknown>@9d4442f
  11: <unknown>@9d56cf4
  12: <unknown>@9d700df
  13: <unknown>@9d7ae90
  14: <unknown>@9d70b78
  15: <unknown>@b640993
  16: <unknown>@9d704cc
  17: <unknown>@2a1ca
  18: <unknown>@2a28b
  19: <unknown>@41e202a
  20: <unknown>


~$ sudo dpkg -i databend_1.2.661.nightly_x86_64_dbg.deb 
Selecting previously unselected package databend_dbg.
(Reading database ... 110755 files and directories currently installed.)
Preparing to unpack databend_1.2.661.nightly_x86_64_dbg.deb ...
Unpacking databend_dbg (1.2.661~nightly) ...
Setting up databend_dbg (1.2.661~nightly) ...


~$ sudo RUST_BACKTRACE=1 /usr/bin/databend-query 
Databend Query start failure, cause: InvalidConfig. Code: 2002, Text = Please set your meta endpoints config: endpoints = [<your-meta-service-endpoints>].

   0: backtrace::backtrace::libunwind::trace[inlined]
             at /opt/rust/cargo/git/checkouts/backtrace-rs-fb1f822361417489-shallow/72265be/src/backtrace/libunwind.rs:116:5
   1: backtrace::backtrace::trace_unsynchronized[inlined]
             at /opt/rust/cargo/git/checkouts/backtrace-rs-fb1f822361417489-shallow/72265be/src/backtrace/mod.rs:66:5
   2: databend_common_exception::exception_backtrace::StackTrace::capture_frames[inlined]
             at /workspace/src/common/exception/src/exception_backtrace.rs:252:13
   3: databend_common_exception::exception_backtrace::StackTrace::capture@53b3029
             at /workspace/src/common/exception/src/exception_backtrace.rs:167:9
   4: databend_common_exception::exception_backtrace::capture@53b2fb2
             at /workspace/src/common/exception/src/exception_backtrace.rs:64:17
   5: databend_common_exception::exception_code::<impl databend_common_exception::exception::ErrorCode>::InvalidConfig@5359f2e
             at /workspace/src/common/exception/src/exception_code.rs:35:30
   6: databend_common_config::inner::MetaConfig::check_valid@53914d0
             at /workspace/src/query/config/src/inner.rs:0:0
   7: databend_common_config::inner::InnerConfig::load::{{closure}}[inlined]
             at /workspace/src/query/config/src/inner.rs:92:13
   8: databend_query::main_entrypoint::{{closure}}[inlined]
             at /workspace/src/binaries/query/ee_main.rs:67:49
   9: <core::pin::Pin<P> as core::future::future::Future>::poll[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/core/src/future/future.rs:123:9
  10: futures_util::future::future::FutureExt::poll_unpin@9ca9d56
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/future/future/mod.rs:558:9
  11: <databend_common_base::runtime::catch_unwind::CatchUnwindFuture<F> as core::future::future::Future>::poll::{{closure}}[inlined]
             at /workspace/src/common/base/src/runtime/catch_unwind.rs:75:36
  12: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/core/src/panic/unwind_safe.rs:272:9
  13: std::panicking::try::do_call[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:553:40
  14: std::panicking::try[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:517:19
  15: std::panic::catch_unwind@9d6986a
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panic.rs:350:14
  16: databend_common_base::runtime::catch_unwind::catch_unwind[inlined]
             at /workspace/src/common/base/src/runtime/catch_unwind.rs:47:11
  17: <databend_common_base::runtime::catch_unwind::CatchUnwindFuture<F> as core::future::future::Future>::poll@9ce6ecc
             at /workspace/src/common/base/src/runtime/catch_unwind.rs:75:15
  18: <databend_common_base::runtime::runtime_tracker::TrackingFuture<T> as core::future::future::Future>::poll@9cf9b17
             at /workspace/src/common/base/src/runtime/runtime_tracker.rs:143:9
  19: <async_backtrace::framed::Framed<F> as core::future::future::Future>::poll::{{closure}}[inlined]
             at /opt/rust/cargo/git/checkouts/async-backtrace-9554bf0eaadc9fb8-shallow/dea4553/backtrace/src/framed.rs:49:27
  20: async_backtrace::frame::Frame::in_scope::{{closure}}[inlined]
             at /opt/rust/cargo/git/checkouts/async-backtrace-9554bf0eaadc9fb8-shallow/dea4553/backtrace/src/frame.rs:184:17
  21: std::thread::local::LocalKey<T>::try_with[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/thread/local.rs:283:12
  22: std::thread::local::LocalKey<T>::with@9cd10c4
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/thread/local.rs:260:9
  23: async_backtrace::frame::active_frame::with[inlined]
             at /opt/rust/cargo/git/checkouts/async-backtrace-9554bf0eaadc9fb8-shallow/dea4553/backtrace/src/frame.rs:81:9
  24: async_backtrace::frame::Frame::in_scope[inlined]
             at /opt/rust/cargo/git/checkouts/async-backtrace-9554bf0eaadc9fb8-shallow/dea4553/backtrace/src/frame.rs:180:13
  25: <async_backtrace::framed::Framed<F> as core::future::future::Future>::poll[inlined]
             at /opt/rust/cargo/git/checkouts/async-backtrace-9554bf0eaadc9fb8-shallow/dea4553/backtrace/src/framed.rs:49:9
  26: tokio::runtime::park::CachedParkThread::block_on::{{closure}}[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/park.rs:281:63
  27: tokio::runtime::coop::with_budget[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/coop.rs:107:5
  28: tokio::runtime::coop::budget[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/coop.rs:73:5
  29: tokio::runtime::park::CachedParkThread::block_on@9d1ef52
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/park.rs:281:31
  30: tokio::runtime::context::blocking::BlockingRegionGuard::block_on[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/context/blocking.rs:66:9
  31: tokio::runtime::handle::Handle::block_on_inner::{{closure}}[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/handle.rs:327:13
  32: tokio::runtime::context::runtime::enter_runtime@9d4442f
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/context/runtime.rs:65:16
  33: tokio::runtime::handle::Handle::block_on_inner[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/handle.rs:326:9
  34: tokio::runtime::handle::Handle::block_on[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/handle.rs:305:13
  35: databend_common_base::runtime::runtime::Runtime::block_on::{{closure}}[inlined]
             at /workspace/src/common/base/src/runtime/runtime.rs:263:13
  36: tokio::runtime::scheduler::multi_thread::worker::block_in_place@9d56cf4
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/multi_thread/worker.rs:457:9
  37: tokio::runtime::scheduler::block_in_place::block_in_place[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/runtime/scheduler/block_in_place.rs:20:5
  38: tokio::task::blocking::block_in_place[inlined]
             at /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.0/src/task/blocking.rs:78:9
  39: databend_common_base::runtime::runtime::Runtime::block_on[inlined]
             at /workspace/src/common/base/src/runtime/runtime.rs:262:9
  40: databend_query::main@9d700df
             at /workspace/src/binaries/query/ee_main.rs:56:33
  41: core::ops::function::FnOnce::call_once[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/core/src/ops/function.rs:250:5
  42: std::sys::backtrace::__rust_begin_short_backtrace@9d7ae90
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/sys/backtrace.rs:155:18
  43: std::rt::lang_start::{{closure}}@9d70b78
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/rt.rs:159:18
  44: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/core/src/ops/function.rs:284:13
  45: std::panicking::try::do_call[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:553:40
  46: std::panicking::try[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:517:19
  47: std::panic::catch_unwind[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panic.rs:350:14
  48: std::rt::lang_start_internal::{{closure}}[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/rt.rs:141:48
  49: std::panicking::try::do_call[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:553:40
  50: std::panicking::try[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panicking.rs:517:19
  51: std::panic::catch_unwind[inlined]
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/panic.rs:350:14
  52: std::rt::lang_start_internal@b640993
             at /rustc/cf2df68d1f5e56803c97d91e2b1a9f1c9923c533/library/std/src/rt.rs:141:20
  53: <unknown>@2a1ca
  54: <unknown>@2a28b
  55: <unknown>

@zhang2014 zhang2014 requested a review from everpcpc November 25, 2024 03:29
@zhang2014 zhang2014 marked this pull request as ready for review November 25, 2024 03:29
@zhang2014 zhang2014 enabled auto-merge November 25, 2024 07:27
@zhang2014 zhang2014 added this pull request to the merge queue Nov 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 25, 2024
@zhang2014 zhang2014 added this pull request to the merge queue Nov 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2024
@zhang2014 zhang2014 enabled auto-merge November 25, 2024 16:04
@zhang2014 zhang2014 added this pull request to the merge queue Nov 26, 2024
Merged via the queue into databendlabs:main with commit 7b98a13 Nov 26, 2024
72 checks passed
@zhang2014 zhang2014 deleted the chore/split_binary branch November 26, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-chore this PR only has small changes that no need to record, like coding styles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants