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

Postgres CDC Source with an column type mismatch causes the Compute Node to fail #19408

Closed
edeesis opened this issue Nov 15, 2024 · 5 comments · Fixed by #19409
Closed

Postgres CDC Source with an column type mismatch causes the Compute Node to fail #19408

edeesis opened this issue Nov 15, 2024 · 5 comments · Fixed by #19409
Labels
type/bug Something isn't working
Milestone

Comments

@edeesis
Copy link

edeesis commented Nov 15, 2024

Describe the bug

If a Postgres table has a timestamp column and the corresponding RisingWave table is created with a timestamptz column, the CREATE TABLE statement succeeds but the Actor job that runs will fail and the entire Compute node will crash.

When running in standalone mode, RisingWave also crashes.

This seems to only happen when the table in question already has data in it. If the PG table is empty, the RW source and table are created, then data is INSERTed into the PG table, there is no error.

Error message/log

risingwave-1   | 2024-11-15T22:14:09.822329943Z ERROR  rw-standalone-frontend handle_query{mode="extended query parse" session_id=2 sql=SELECT CAST(R.oid AS BIGINT) AS role_id, rolname AS role_name, rolsuper AS is_super, rolinherit AS is_inherit, rolcreaterole AS can_createrole, rolcreatedb AS can_createdb, rolcanlogin AS can_login, rolreplication AS is_replication, rolconnlimit AS conn_limit, rolvaliduntil AS valid_until, rolbypassrls AS bypass_rls, rolconfig AS config, D.description FROM pg_catalog.pg_roles AS R LEFT JOIN pg_catalog.pg_shdescription AS D ON D.objoid = R.oid}: pgwire::pg_protocol: error when process message error=Failed to prepare the statement: Failed to bind expression: rolconfig: Item not found: Invalid column: rolconfig
risingwave-1   | 2024-11-15T22:14:09.829085901Z ERROR  rw-standalone-frontend handle_query{mode="extended query parse" session_id=2 sql=SELECT CAST(T.oid AS BIGINT) AS id, T.spcname AS name, T.xmin AS state_number, pg_catalog.pg_get_userbyid(T.spcowner) AS owner, pg_catalog.pg_tablespace_location(T.oid) AS location, T.spcoptions AS options, D.description AS comment FROM pg_catalog.pg_tablespace AS T LEFT JOIN pg_catalog.pg_shdescription AS D ON D.objoid = T.oid}: pgwire::pg_protocol: error when process message error=Failed to prepare the statement: Failed to bind expression: T.xmin: Item not found: Invalid column: xmin
risingwave-1   | 2024-11-15T22:14:09.843330407Z ERROR  rw-standalone-frontend handle_query{mode="extended query parse" session_id=2 sql=SELECT CAST(N.oid AS BIGINT) AS id, N.xmin AS state_number, nspname AS name, D.description, pg_catalog.pg_get_userbyid(N.nspowner) AS "owner" FROM pg_catalog.pg_namespace AS N LEFT JOIN pg_catalog.pg_description AS D ON N.oid = D.objoid ORDER BY CASE WHEN nspname = pg_catalog.current_schema() THEN - CAST(1 AS BIGINT) ELSE CAST(N.oid AS BIGINT) END}: pgwire::pg_protocol: error when process message error=Failed to prepare the statement: Failed to bind expression: N.xmin: Item not found: Invalid column: xmin
risingwave-1   | 2024-11-15T22:14:10.715819666Z  INFO            rw-streaming actor{otel.name="Actor 52" actor_id=52 prev_epoch=7502145107460096 curr_epoch=7502145172996096}:executor{otel.name="StreamCdcScan 3400002715"}: risingwave_stream::executor::backfill::cdc::cdc_backfill: start cdc backfill loop table_id=10 upstream_table_name="public.test" initial_binlog_offset=Some(Postgres(PostgresOffset { txid: 2362, lsn: 29425128 })) current_pk_pos=None is_snapshot_paused=false
risingwave-1   | thread 'rw-streaming' panicked at /risingwave/src/common/src/array/mod.rs:502:29:
risingwave-1   | type mismatch, array builder type: Timestamptz, scalar type: Timestamp
risingwave-1   | stack backtrace:
risingwave-1   |    0:     0xaaaae9210510 - std::backtrace_rs::backtrace::libunwind::trace::h22abe6941b6c364e
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
risingwave-1   |    1:     0xaaaae9210510 - std::backtrace_rs::backtrace::trace_unsynchronized::h09825ba824b25c03
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
risingwave-1   |    2:     0xaaaae9210510 - std::sys_common::backtrace::_print_fmt::h8edb2ed98e6d043e
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:68:5
risingwave-1   |    3:     0xaaaae9210510 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h59fe19f00e808c0f
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:44:22
risingwave-1   |    4:     0xaaaade733b30 - core::fmt::rt::Argument::fmt::h97fcedd5c989dd8e
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/fmt/rt.rs:165:63
risingwave-1   |    5:     0xaaaade733b30 - core::fmt::write::h2ab4a0f6cb1c47e2
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/fmt/mod.rs:1168:21
risingwave-1   |    6:     0xaaaae9209bf8 - std::io::Write::write_fmt::h92c5bdbd600095f4
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/io/mod.rs:1835:15
risingwave-1   |    7:     0xaaaae9210358 - std::sys_common::backtrace::_print::ha084ca3dc112f7ce
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:47:5
risingwave-1   |    8:     0xaaaae9210358 - std::sys_common::backtrace::print::h6a76a3e289b41b76
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:34:9
risingwave-1   |    9:     0xaaaae921170c - std::panicking::default_hook::{{closure}}::h673ec0d25d5839ed
risingwave-1   |   10:     0xaaaae92113b4 - std::panicking::default_hook::habb52c27eba39fa1
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:298:9
risingwave-1   |   11:     0xaaaae6d4c7c8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hfab1567d6a55e232
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/alloc/src/boxed.rs:2077:9
risingwave-1   |   12:     0xaaaae6d4c7c8 - risingwave_rt::panic_hook::set_panic_hook::{{closure}}::ha60f5dc292b137af
risingwave-1   |                                at /risingwave/src/utils/runtime/src/panic_hook.rs:25:9
risingwave-1   |   13:     0xaaaae6d4c7c8 - std::panicking::update_hook::{{closure}}::h472664851ab11bf2
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:233:47
risingwave-1   |   14:     0xaaaae9211cc4 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4fb87aedeaa87f30
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/alloc/src/boxed.rs:2077:9
risingwave-1   |   15:     0xaaaae9211cc4 - std::panicking::rust_panic_with_hook::h8b6dcdad5fa83c38
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:799:13
risingwave-1   |   16:     0xaaaae9211aac - std::panicking::begin_panic_handler::{{closure}}::h130bba524bd3d26b
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:664:13
risingwave-1   |   17:     0xaaaae92109f0 - std::sys_common::backtrace::__rust_end_short_backtrace::hb1a588d5cae29824
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:171:18
risingwave-1   |   18:     0xaaaae9211828 - rust_begin_unwind
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:652:5
risingwave-1   |   19:     0xaaaade7306c4 - core::panicking::panic_fmt::hf916447f409c2977
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/panicking.rs:72:14
risingwave-1   |   20:     0xaaaae7f74648 - risingwave_common::array::ArrayBuilderImpl::append_n::{{closure}}::he480b254654d4218
risingwave-1   |                                at /risingwave/src/common/src/array/mod.rs:502:29
risingwave-1   |   21:     0xaaaae7f712c8 - core::result::Result<T,E>::unwrap_or_else::h15107c1ecd9c79db
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/result.rs:1456:23
risingwave-1   |   22:     0xaaaae7f712c8 - risingwave_common::array::ArrayBuilderImpl::append_n::ha1f3d97452e58775
risingwave-1   |                                at /risingwave/src/common/src/array/mod.rs:501:52
risingwave-1   |   23:     0xaaaae79844e0 - risingwave_common::array::ArrayBuilderImpl::append::h713587a85f5eed30
risingwave-1   |                                at /risingwave/src/common/src/array/mod.rs:516:9
risingwave-1   |   24:     0xaaaae79844e0 - risingwave_common::util::chunk_coalesce::DataChunkBuilder::do_append_one_row_from_datums::hbb62c52bb5fd5f30
risingwave-1   |                                at /risingwave/src/common/src/util/chunk_coalesce.rs:161:27
risingwave-1   |   25:     0xaaaae79844e0 - risingwave_common::util::chunk_coalesce::DataChunkBuilder::append_one_row_no_finish::h7d68e357a0fc7ccb
risingwave-1   |                                at /risingwave/src/common/src/util/chunk_coalesce.rs:181:9
risingwave-1   |   26:     0xaaaae79844e0 - risingwave_common::util::chunk_coalesce::DataChunkBuilder::append_one_row::hc2636813d9260fd6
risingwave-1   |                                at /risingwave/src/common/src/util/chunk_coalesce.rs:170:9
risingwave-1   |   27:     0xaaaae77cdfb0 - risingwave_storage::table::collect_data_chunk_with_builder::{{closure}}::hc0c2861e30ed5270
risingwave-1   |                                at /risingwave/src/storage/src/table/mod.rs:92:22
risingwave-1   |   28:     0xaaaae7863868 - <await_tree::future::Instrumented<F,_> as core::future::future::Future>::poll::h711b73e907e85f5e
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/await-tree-0.2.1/src/future.rs:119:15
risingwave-1   |   29:     0xaaaae8a0410c - risingwave_stream::executor::backfill::utils::iter_chunks::{{closure}}::he4296b5edded77bd
risingwave-1   |                                at /risingwave/src/stream/src/executor/backfill/utils.rs:691:10
risingwave-1   |   30:     0xaaaae8a0410c - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::h13a7cdefaf4ccd3c
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   31:     0xaaaae8a0410c - <risingwave_stream::executor::backfill::cdc::upstream_table::snapshot::UpstreamTableReader<risingwave_stream::executor::backfill::cdc::upstream_table::external::ExternalStorageTable> as risingwave_stream::executor::backfill::cdc::upstream_table::snapshot::UpstreamTableRead>::snapshot_read_full_table::{{closure}}::h3673d6e04e17650b
risingwave-1   |                                at /risingwave/src/stream/src/executor/backfill/cdc/upstream_table/snapshot.rs:142:5
risingwave-1   |   32:     0xaaaae8a0410c - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::h90c2e436763321af
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   33:     0xaaaae8a0410c - <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next::h398e9cda8b778845
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/map.rs:58:26
risingwave-1   |   34:     0xaaaae8b71648 - futures_util::stream::select_with_strategy::poll_side::hd215379c9f97a8aa
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/select_with_strategy.rs:220:28
risingwave-1   |   35:     0xaaaae8b71648 - futures_util::stream::select_with_strategy::poll_inner::h4556a5a43ea2e903
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/select_with_strategy.rs:243:11
risingwave-1   |   36:     0xaaaae8b71648 - <futures_util::stream::select_with_strategy::SelectWithStrategy<St1,St2,Clos,State> as futures_core::stream::Stream>::poll_next::ha8a5c3aabd2f5030
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/select_with_strategy.rs:270:17
risingwave-1   |   37:     0xaaaae8b71648 - <&mut S as futures_core::stream::Stream>::poll_next::he496ee46b3050f32
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:104:9
risingwave-1   |   38:     0xaaaae8b71648 - risingwave_stream::executor::backfill::cdc::cdc_backfill::CdcBackfillExecutor<S>::execute_inner::{{closure}}::h5de5fbcee3b15599
risingwave-1   |                                at /risingwave/src/stream/src/executor/backfill/cdc/cdc_backfill.rs:133:5
risingwave-1   |   39:     0xaaaae8a12c60 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::h6edc5c5f594d62d2
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   40:     0xaaaae788a5e4 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::h14c0227df8093772
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   41:     0xaaaae788a5e4 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::habf2db217ca5878e
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   42:     0xaaaae788a5e4 - futures_util::stream::stream::StreamExt::poll_next_unpin::h24109bcfa5f600c2
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/mod.rs:1638:9
risingwave-1   |   43:     0xaaaae788a5e4 - <futures_util::stream::stream::next::Next<St> as core::future::future::Future>::poll::h0bf6d3e2f76ae5d1
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/next.rs:32:9
risingwave-1   |   44:     0xaaaae788a5e4 - <await_tree::future::Instrumented<F,_> as core::future::future::Future>::poll::hff3d2eb9a095be07
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/await-tree-0.2.1/src/future.rs:119:15
risingwave-1   |   45:     0xaaaae815f4b8 - risingwave_stream::executor::wrapper::trace::instrument_await_tree::{{closure}}::he25a63e5bee5ae6a
risingwave-1   |                                at /risingwave/src/stream/src/executor/wrapper/trace.rs:116:10
risingwave-1   |   46:     0xaaaae815f4b8 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::h59fb92257de94379
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   47:     0xaaaae815f4b8 - risingwave_stream::executor::wrapper::schema_check::schema_check::{{closure}}::hbe826157d5b0de88
risingwave-1   |                                at /risingwave/src/stream/src/executor/wrapper/schema_check.rs:24:1
risingwave-1   |   48:     0xaaaae815f4b8 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::h23eb34f63b5eff99
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   49:     0xaaaae815f4b8 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::h4266b1991a35d0c6
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   50:     0xaaaae815f4b8 - futures_util::stream::stream::StreamExt::poll_next_unpin::h84497adfb9e7eccc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/mod.rs:1638:9
risingwave-1   |   51:     0xaaaae815c64c - <futures_util::stream::stream::next::Next<St> as core::future::future::Future>::poll::h4d74525559a226e6
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/next.rs:32:9
risingwave-1   |   52:     0xaaaae815c64c - risingwave_stream::executor::wrapper::epoch_check::epoch_check::{{closure}}::h054af6c62469f124
risingwave-1   |                                at /risingwave/src/stream/src/executor/wrapper/epoch_check.rs:31:44
risingwave-1   |   53:     0xaaaae815c64c - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::hd3bbecb060a2c297
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   54:     0xaaaae815c64c - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::h9a94881c9e2dda8b
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   55:     0xaaaae815c64c - <S as futures_core::stream::TryStream>::try_poll_next::hb8f14d48140fe564
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:196:9
risingwave-1   |   56:     0xaaaae815c64c - futures_util::stream::try_stream::TryStreamExt::try_poll_next_unpin::h6afaa2b41e2f3f1d
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/try_stream/mod.rs:1131:9
risingwave-1   |   57:     0xaaaae8643708 - <futures_util::stream::try_stream::try_next::TryNext<St> as core::future::future::Future>::poll::h31d1c80d764dfe95
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/try_stream/try_next.rs:32:9
risingwave-1   |   58:     0xaaaae8643708 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::{{closure}}::h65eb286c3a769499
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:391:31
risingwave-1   |   59:     0xaaaae8643708 - tokio::task::task_local::LocalKey<T>::scope_inner::h6ca222508ab4a0cc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:217:19
risingwave-1   |   60:     0xaaaae8643708 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::he51abdfa44433527
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:387:19
risingwave-1   |   61:     0xaaaae815f1d0 - risingwave_common::util::epoch::task_local::scope::{{closure}}::h1ab6a1e160040c9a
risingwave-1   |                                at /risingwave/src/common/src/util/epoch.rs:249:47
risingwave-1   |   62:     0xaaaae815f1d0 - risingwave_stream::executor::wrapper::epoch_provide::epoch_provide::{{closure}}::hd2bcdb61d0d556c2
risingwave-1   |                                at /risingwave/src/stream/src/executor/wrapper/epoch_provide.rs:31:59
risingwave-1   |   63:     0xaaaae815f1d0 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::ha7a25b2547b592d7
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   64:     0xaaaae815f1d0 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::h7566edd0e000754c
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   65:     0xaaaae815f1d0 - futures_util::stream::stream::StreamExt::poll_next_unpin::h5a2b4585c0fab634
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/mod.rs:1638:9
risingwave-1   |   66:     0xaaaae7c7bb44 - <futures_util::stream::stream::next::Next<St> as core::future::future::Future>::poll::hb4054501db42da95
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/stream/stream/next.rs:32:9
risingwave-1   |   67:     0xaaaae7c7bb44 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::h51ad2f82d4cc6abe
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
risingwave-1   |   68:     0xaaaae812dd84 - risingwave_stream::executor::wrapper::trace::trace::{{closure}}::h448cadeb4a49a084
risingwave-1   |                                at /risingwave/src/stream/src/executor/wrapper/trace.rs:53:69
risingwave-1   |   69:     0xaaaae812dd84 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::hc9ea8dc74790a54b
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   70:     0xaaaae81f1428 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::h14c0227df8093772
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   71:     0xaaaae81f1428 - <risingwave_stream::executor::dispatch::DispatchExecutor as risingwave_stream::executor::StreamConsumer>::execute::{{closure}}::ha74f7dad3489b907
risingwave-1   |                                at /risingwave/src/stream/src/executor/dispatch.rs:392:9
risingwave-1   |   72:     0xaaaae81f1428 - <futures_async_stream::try_stream::GenTryStream<G> as futures_core::stream::Stream>::poll_next::hcf2e1b47de41a9d7
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-async-stream-0.2.11/src/lib.rs:492:33
risingwave-1   |   73:     0xaaaae81f1428 - <core::pin::Pin<P> as futures_core::stream::Stream>::poll_next::hce0774aff09ed4f1
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:120:9
risingwave-1   |   74:     0xaaaae7c75798 - <&mut S as futures_core::stream::Stream>::poll_next::h053428cfa28eb0b0
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.30/src/stream.rs:104:9
risingwave-1   |   75:     0xaaaae7c75798 - <tokio_stream::stream_ext::next::Next<St> as core::future::future::Future>::poll::h7c94bc6931d280c4
risingwave-1   |                                at /root/.cargo/git/checkouts/tokio-968c02b7a1a41bea-shallow/0dd1055/tokio-stream/src/stream_ext/next.rs:42:29
risingwave-1   |   76:     0xaaaae7c75798 - <tokio_stream::stream_ext::try_next::TryNext<St> as core::future::future::Future>::poll::he38009a67addcf96
risingwave-1   |                                at /root/.cargo/git/checkouts/tokio-968c02b7a1a41bea-shallow/0dd1055/tokio-stream/src/stream_ext/try_next.rs:43:9
risingwave-1   |   77:     0xaaaae7c75798 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::h36c329784c5f5483
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
risingwave-1   |   78:     0xaaaae784a5e4 - <await_tree::future::Instrumented<F,_> as core::future::future::Future>::poll::h3320873fe0576dbd
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/await-tree-0.2.1/src/future.rs:119:15
risingwave-1   |   79:     0xaaaae820a3c4 - risingwave_stream::executor::actor::Actor<C>::run_consumer::{{closure}}::h2e6886c6b31d8b65
risingwave-1   |                                at /risingwave/src/stream/src/executor/actor.rs:233:18
risingwave-1   |   80:     0xaaaae820a3c4 - <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll::h1312d97406b4dac7
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/future/maybe_done.rs:62:56
risingwave-1   |   81:     0xaaaae7a15878 - risingwave_stream::executor::actor::Actor<C>::run::{{closure}}::{{closure}}::{{closure}}::h18302eda93d11d4f
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/macros/join.rs:126:24
risingwave-1   |   82:     0xaaaae7a15878 - <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll::h024dd79eb25ee8eb
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/future/poll_fn.rs:58:9
risingwave-1   |   83:     0xaaaae8643e50 - risingwave_stream::executor::actor::Actor<C>::run::{{closure}}::{{closure}}::h248191a46010c452
risingwave-1   |                                at /risingwave/src/stream/src/executor/actor.rs:183:17
risingwave-1   |   84:     0xaaaae8643e50 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::{{closure}}::he2968b4a28d990bc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:391:31
risingwave-1   |   85:     0xaaaae8643e50 - tokio::task::task_local::LocalKey<T>::scope_inner::h1f4f8b9c58c98937
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:217:19
risingwave-1   |   86:     0xaaaae8643e50 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::h859e366a13744885
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:387:19
risingwave-1   |   87:     0xaaaae8643e50 - risingwave_expr::expr_context::expr_context_scope::{{closure}}::hfb84e58a0eda8afb
risingwave-1   |                                at /risingwave/src/expr/core/src/expr_context.rs:35:65
risingwave-1   |   88:     0xaaaae8643e50 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::{{closure}}::hfc43fddb42856b56
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:391:31
risingwave-1   |   89:     0xaaaae8643e50 - tokio::task::task_local::LocalKey<T>::scope_inner::h39152083cd1edf6a
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:217:19
risingwave-1   |   90:     0xaaaae8643e50 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::hf31798036ade5a77
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:387:19
risingwave-1   |   91:     0xaaaae87e53b0 - risingwave_stream::executor::actor::Actor<C>::run::{{closure}}::h05a653dfcff93856
risingwave-1   |                                at /risingwave/src/stream/src/executor/actor.rs:191:10
risingwave-1   |   92:     0xaaaae87e53b0 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::h350054b5429a8ccc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/future/future/map.rs:55:37
risingwave-1   |   93:     0xaaaae8643554 - <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll::h673a3a71875ca7e7
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/lib.rs:91:13
risingwave-1   |   94:     0xaaaae8643554 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::{{closure}}::h9a91e0df0798ec05
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:391:31
risingwave-1   |   95:     0xaaaae8643554 - tokio::task::task_local::LocalKey<T>::scope_inner::h98c6035552d69f5b
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:217:19
risingwave-1   |   96:     0xaaaae8643554 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::h5032f3d3c119b2df
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:387:19
risingwave-1   |   97:     0xaaaae8207288 - await_tree::root::TreeRoot::instrument::{{closure}}::h93addbc4dfcad784
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/await-tree-0.2.1/src/root.rs:43:34
risingwave-1   |   98:     0xaaaae8207288 - <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll::hdf167959520cefc5
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.30/src/future/either.rs:109:32
risingwave-1   |   99:     0xaaaae8207288 - core::ops::function::FnOnce::call_once::h5a6e5be389890bd6
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/ops/function.rs:250:5
risingwave-1   |  100:     0xaaaae8207288 - tokio_metrics::task::instrument_poll::h2fe4a80565c209cc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-metrics-0.3.1/src/task.rs:2530:15
risingwave-1   |  101:     0xaaaae8207288 - <tokio_metrics::task::Instrumented<T> as core::future::future::Future>::poll::h9a95da3bf0c33b28
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-metrics-0.3.1/src/task.rs:2430:9
risingwave-1   |  102:     0xaaaae8641d60 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::{{closure}}::h02dddb8dbb9886c9
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:391:31
risingwave-1   |  103:     0xaaaae8641d60 - tokio::task::task_local::LocalKey<T>::scope_inner::h51f9522897e29e18
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:217:19
risingwave-1   |  104:     0xaaaae8641d60 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::h29ee7df7e2783ac5
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/task/task_local.rs:387:19
risingwave-1   |  105:     0xaaaae7c834c8 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::h88ce501f0ffbdd50
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
risingwave-1   |  106:     0xaaaae8497bcc - tokio::runtime::task::core::Core<T,S>::poll::{{closure}}::h48f1a2098f62cd2d
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/core.rs:328:17
risingwave-1   |  107:     0xaaaae8497bcc - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::h28e1e4ac66d0a2fc
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/loom/std/unsafe_cell.rs:16:9
risingwave-1   |  108:     0xaaaae8497bcc - tokio::runtime::task::core::Core<T,S>::poll::h105488fcf9fbee64
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/core.rs:317:30
risingwave-1   |  109:     0xaaaae8497bcc - tokio::runtime::task::harness::poll_future::{{closure}}::h2f2e757bd8a4ce6f
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:485:19
risingwave-1   |  110:     0xaaaae8497bcc - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hbd17610e2238a064
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/panic/unwind_safe.rs:272:9
risingwave-1   |  111:     0xaaaae8497bcc - std::panicking::try::do_call::hf2e7d0352c7dd1e4
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:559:40
risingwave-1   |  112:     0xaaaae8497bcc - std::panicking::try::h4fb6ba155bc78f92
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:523:19
risingwave-1   |  113:     0xaaaae843cd88 - std::panic::catch_unwind::h9d09c0c8c1f4516c
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panic.rs:149:14
risingwave-1   |  114:     0xaaaae843cd88 - tokio::runtime::task::harness::poll_future::hcee6290340be3fcd
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:473:18
risingwave-1   |  115:     0xaaaae843cd88 - tokio::runtime::task::harness::Harness<T,S>::poll_inner::hb877729fe9a53667
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:208:27
risingwave-1   |  116:     0xaaaae843cd88 - tokio::runtime::task::harness::Harness<T,S>::poll::h8cdbfc46136359c1
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:153:15
risingwave-1   |  117:     0xaaaae92a2770 - tokio::runtime::task::raw::RawTask::poll::h11a8a4a79040a7bf
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/raw.rs:201:18
risingwave-1   |  118:     0xaaaae92a2770 - tokio::runtime::task::LocalNotified<S>::run::h17cc97ffb9658be3
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/mod.rs:427:9
risingwave-1   |  119:     0xaaaae92a2770 - tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}::hd772a860258409b8
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:648:22
risingwave-1   |  120:     0xaaaae92a2770 - tokio::runtime::coop::with_budget::he1ceebba0a97f9d3
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:107:5
risingwave-1   |  121:     0xaaaae92a2770 - tokio::runtime::coop::budget::h55c79cc4f8dce225
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:73:5
risingwave-1   |  122:     0xaaaae92a2770 - tokio::runtime::scheduler::multi_thread::worker::Context::run_task::hb012f511b3732ad7
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:584:9
risingwave-1   |  123:     0xaaaae929e0f0 - tokio::runtime::scheduler::multi_thread::worker::Context::run::h2f470152f5aea225
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:535:24
risingwave-1   |  124:     0xaaaae929e0f0 - tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::{{closure}}::h8faae8fe4ed4f934
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:500:21
risingwave-1   |  125:     0xaaaae929e0f0 - tokio::runtime::context::scoped::Scoped<T>::set::ha30fd469612ca825
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/scoped.rs:40:9
risingwave-1   |  126:     0xaaaae92cbc9c - tokio::runtime::context::set_scheduler::{{closure}}::heb3a6dfa87e37801
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context.rs:180:26
risingwave-1   |  127:     0xaaaae92cbc9c - std::thread::local::LocalKey<T>::try_with::hfe769d9e2fb4c79b
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/thread/local.rs:283:12
risingwave-1   |  128:     0xaaaae92cbc9c - std::thread::local::LocalKey<T>::with::h2a138b84ab47aea9
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/thread/local.rs:260:9
risingwave-1   |  129:     0xaaaae92cbc9c - tokio::runtime::context::set_scheduler::h7bf39803e2a9c4b1
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context.rs:180:17
risingwave-1   |  130:     0xaaaae92cbc9c - tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::h93c4b5a3ad0de9a8
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:495:9
risingwave-1   |  131:     0xaaaae92cbc9c - tokio::runtime::context::runtime::enter_runtime::h53386402a469c55b
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/runtime.rs:65:16
risingwave-1   |  132:     0xaaaae92a2448 - tokio::runtime::scheduler::multi_thread::worker::run::h80fc9be3b6e05d17
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:487:5
risingwave-1   |  133:     0xaaaae92d4a78 - tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}::hfcfe249a053d0e12
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/worker.rs:455:45
risingwave-1   |  134:     0xaaaae92d4a78 - <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::h8d03f89085c66875
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/blocking/task.rs:42:21
risingwave-1   |  135:     0xaaaae92bd518 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::heab2038119690493
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
risingwave-1   |  136:     0xaaaae9294b18 - tokio::runtime::task::core::Core<T,S>::poll::{{closure}}::h4114bf29e28d8691
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/core.rs:328:17
risingwave-1   |  137:     0xaaaae9294b18 - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::h0ed672972de98668
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/loom/std/unsafe_cell.rs:16:9
risingwave-1   |  138:     0xaaaae9294b18 - tokio::runtime::task::core::Core<T,S>::poll::h7dddec4f1eb1a36e
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/core.rs:317:30
risingwave-1   |  139:     0xaaaae92d0a40 - tokio::runtime::task::harness::poll_future::{{closure}}::h355fcbc9cd01cabb
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:485:19
risingwave-1   |  140:     0xaaaae92d0a40 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc185ec2f36e5d28b
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/panic/unwind_safe.rs:272:9
risingwave-1   |  141:     0xaaaae92d0a40 - std::panicking::try::do_call::h82c5b0d44b4f6c74
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:559:40
risingwave-1   |  142:     0xaaaae92d0a40 - std::panicking::try::hefcfdd776043e07b
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:523:19
risingwave-1   |  143:     0xaaaae92d0a40 - std::panic::catch_unwind::h36cfe0c969f25d8f
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panic.rs:149:14
risingwave-1   |  144:     0xaaaae92d0a40 - tokio::runtime::task::harness::poll_future::hab24ffce00674db0
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:473:18
risingwave-1   |  145:     0xaaaae92d0a40 - tokio::runtime::task::harness::Harness<T,S>::poll_inner::hbc5943b3d8856026
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:208:27
risingwave-1   |  146:     0xaaaae92d0a40 - tokio::runtime::task::harness::Harness<T,S>::poll::ha73138327a9ec1c6
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/harness.rs:153:15
risingwave-1   |  147:     0xaaaae929a644 - tokio::runtime::task::raw::RawTask::poll::h11a8a4a79040a7bf
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/raw.rs:201:18
risingwave-1   |  148:     0xaaaae929a644 - tokio::runtime::task::UnownedTask<S>::run::hba64ab51eaf8d238
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/task/mod.rs:464:9
risingwave-1   |  149:     0xaaaae929a644 - tokio::runtime::blocking::pool::Task::run::h481a95db15e502ae
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/blocking/pool.rs:159:9
risingwave-1   |  150:     0xaaaae929a644 - tokio::runtime::blocking::pool::Inner::run::ha0ba4d9aa48f9ffa
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/blocking/pool.rs:513:17
risingwave-1   |  151:     0xaaaae92cd6cc - tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}::hc72f7bf150343440
risingwave-1   |                                at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/blocking/pool.rs:471:13
risingwave-1   |  152:     0xaaaae92cd6cc - std::sys_common::backtrace::__rust_begin_short_backtrace::hde6d24fe53a37017
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys_common/backtrace.rs:155:18
risingwave-1   |  153:     0xaaaae92ac49c - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h495ccba904d0627f
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/thread/mod.rs:542:17
risingwave-1   |  154:     0xaaaae92ac49c - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h66be80ef8179676b
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/panic/unwind_safe.rs:272:9
risingwave-1   |  155:     0xaaaae92ac49c - std::panicking::try::do_call::h82bf64d7e53ac8f1
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:559:40
risingwave-1   |  156:     0xaaaae92ac49c - std::panicking::try::haf4baf978675fb7a
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panicking.rs:523:19
risingwave-1   |  157:     0xaaaae92ac49c - std::panic::catch_unwind::h635a6e5176be4ab2
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/panic.rs:149:14
risingwave-1   |  158:     0xaaaae92ac49c - std::thread::Builder::spawn_unchecked_::{{closure}}::h91b07e4aedcef0fd
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/thread/mod.rs:541:30
risingwave-1   |  159:     0xaaaae92ac49c - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc0452ad39e06145d
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/core/src/ops/function.rs:250:5
risingwave-1   |  160:     0xaaaae9217c7c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hefea6fa2928853f2
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/alloc/src/boxed.rs:2063:9
risingwave-1   |  161:     0xaaaae9217c7c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h06c03745489277ae
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/alloc/src/boxed.rs:2063:9
risingwave-1   |  162:     0xaaaae9217c7c - std::sys::pal::unix::thread::Thread::new::thread_start::h798df216806ee4c6
risingwave-1   |                                at /rustc/72fdf913c53dd0e75313ba83e4aa80df3f6e2871/library/std/src/sys/pal/unix/thread.rs:108:17
risingwave-1   |  163:     0xffffbaac597c - start_thread
risingwave-1   |                                at ./nptl/pthread_create.c:447:8
risingwave-1   |  164:     0xffffbab2b7dc - thread_start
risingwave-1   |                                at ./misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79
risingwave-1   |  165:                0x0 - <unknown>
risingwave-1   | 
risingwave-1   | 
risingwave-1   | *** await tree context of current task ***
risingwave-1   | 
risingwave-1   | Actor 52: `test` [5.984s]
risingwave-1   |   Epoch 7502145172996096 [4.976s]
risingwave-1   |     StreamCdcScan 3400002715 [4.976s]
risingwave-1   |       backfill_snapshot_read [4.976s]  <== current
risingwave-1   |       Merge 340000271E [4.976s]
risingwave-1   |         LocalInput (actor 53) [4.976s]
risingwave-1   | 
risingwave-1   | 
risingwave-1 exited with code 133

To Reproduce

In Postgres:

create table test
(
    id         bigint generated always as identity
        constraint test_pk
            primary key,
    created_at timestamp default now() not null
);

INSERT INTO public.test (created_at) VALUES (DEFAULT)

In RisingWave:

CREATE SOURCE primary_cdc WITH (
    connector='postgres-cdc',
    hostname='postgres-db',
    port='5432',
    username='postgres',
    password='docker-password',
    database.name='postgres'
);

CREATE TABLE test (
    id bigint PRIMARY KEY,
    created_at timestamptz
) FROM primary_cdc TABLE 'public.test';

Expected behavior

Compute Node should not crash.

CREATE TABLE statement should not complete if the table is incompatible.

How did you deploy RisingWave?

Docker Compose

x-image: &image
  image: ${RW_IMAGE:-risingwavelabs/risingwave:v2.0.1}

services:
  postgres-db:
    ports:
      - '5432:5432'
    image: postgres:15.3
    networks:
      - backend
    healthcheck:
      # https://github.com/docker-library/postgres/issues/326#issuecomment-2053558604
      test: ['CMD-SHELL', 'pg_isready -U postgres -h postgres-db']
      interval: 250ms
      timeout: 5s
      retries: 60
    volumes:
      - postgres-db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=docker-password
      - POSTGRES_DB=risingwave
    command:
      - 'postgres'
      - '-c'
      - 'wal_level=logical'

  risingwave:
    <<: *image
    command: "standalone --meta-opts=\" \
                    --listen-addr 0.0.0.0:5690 \
                    --advertise-addr 0.0.0.0:5690 \
                    --dashboard-host 0.0.0.0:5691 \
                    --prometheus-host 0.0.0.0:1250 \
                    --prometheus-endpoint http://prometheus:9500 \
                    --backend sql \
                    --sql-endpoint postgres://postgres:docker-password@postgres-db:5432/risingwave \
                    --state-store hummock+minio://hummockadmin:hummockadmin@minio:9301/hummock001 \
                    --data-directory hummock_001 \
                    --config-path /risingwave.toml\" \
                 --compute-opts=\" \
                    --config-path /risingwave.toml \
                    --listen-addr 0.0.0.0:5688 \
                    --prometheus-listener-addr 0.0.0.0:1250 \
                    --advertise-addr 0.0.0.0:5688 \
                    --async-stack-trace verbose \
                    #--parallelism 4 \
                    #--total-memory-bytes 8589934592 \
                    --role both \
                    --meta-address http://0.0.0.0:5690\" \
                 --frontend-opts=\" \
                   --config-path /risingwave.toml \
                   --listen-addr 0.0.0.0:4566 \
                   --advertise-addr 0.0.0.0:4566 \
                   --prometheus-listener-addr 0.0.0.0:1250 \
                   --health-check-listener-addr 0.0.0.0:6786 \
                   --meta-addr http://0.0.0.0:5690\" \
                 --compactor-opts=\" \
                   --listen-addr 0.0.0.0:6660 \
                   --prometheus-listener-addr 0.0.0.0:1250 \
                   --advertise-addr 0.0.0.0:6660 \
                   --meta-address http://0.0.0.0:5690\""
    expose:
      - "6660"
      - "4566"
      - "5688"
      - "5690"
      - "1250"
      - "5691"
    ports:
      - "4566:4566"
      - "5690:5690"
      - "5691:5691"
      - "1250:1250"
    depends_on:
      postgres-db:
        condition: service_healthy
      minio:
        condition: service_healthy
    networks:
      - backend
    volumes:
      - "./risingwave.toml:/risingwave.toml"
    environment:
      RUST_BACKTRACE: "full"
      # If ENABLE_TELEMETRY is not set, telemetry will start by default
      ENABLE_TELEMETRY: ${ENABLE_TELEMETRY:-true}
      RW_TELEMETRY_TYPE: ${RW_TELEMETRY_TYPE:-"docker-compose"}
      RW_SECRET_STORE_PRIVATE_KEY_HEX: ${RW_SECRET_STORE_PRIVATE_KEY_HEX:-0123456789abcdef}
      RW_LICENSE_KEY: ${RW_LICENSE_KEY:-""}
    healthcheck:
      test:
        - CMD-SHELL
        - bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/6660; exit $$?;'
        - bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5688; exit $$?;'
        - bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/4566; exit $$?;'
        - bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5690; exit $$?;'
      interval: 1s
      timeout: 5s
      start_period: 30s
    deploy:
      resources:
        limits:
          memory: 28G
        reservations:
          memory: 28G

  minio:
    image: "quay.io/minio/minio:latest"
    command:
      - server
      - "--address"
      - "0.0.0.0:9301"
      - "--console-address"
      - "0.0.0.0:9400"
      - /data
    expose:
      - "9301"
      - "9400"
    ports:
      - "9301:9301"
      - "9400:9400"
    depends_on: [ ]
    volumes:
      - "minio:/data"
    entrypoint: "

      /bin/sh -c '

      set -e

      mkdir -p \"/data/hummock001\"

      /usr/bin/docker-entrypoint.sh \"$$0\" \"$$@\"

      '"
    environment:
      MINIO_CI_CD: "1"
      MINIO_PROMETHEUS_AUTH_TYPE: public
      MINIO_PROMETHEUS_URL: "http://prometheus:9500"
      MINIO_ROOT_PASSWORD: hummockadmin
      MINIO_ROOT_USER: hummockadmin
      MINIO_DOMAIN: "minio"
    networks:
      - backend
    healthcheck:
      test:
        - CMD-SHELL
        - bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/9301; exit $$?;'
      interval: 1s
      timeout: 5s
      retries: 5

volumes:
  postgres-db-data:
  minio:

networks:
  backend:

The version of RisingWave

PostgreSQL 13.14.0-RisingWave-2.0.1 (0d15632)

Additional context

No response

@edeesis edeesis added the type/bug Something isn't working label Nov 15, 2024
@github-actions github-actions bot added this to the release-2.2 milestone Nov 15, 2024
@KeXiangWang
Copy link
Contributor

Let me take a look

@KeXiangWang
Copy link
Contributor

Compute Node should not crash.
CREATE TABLE statement should not complete if the table is incompatible.

Fixed in #19408. Now the cluster will reject this type of mismatch.

@edeesis
Copy link
Author

edeesis commented Nov 16, 2024

Thank you for the lightning fast fix.

I see this change will validate the table prior to creation, which I understand will prevent the CREATE TABLE statement from running, which is good.

I'm still rather concerned with the Compute Node completely crashing when one Actor or Job does. Is there anything that can be done to make that more resilient?

@KeXiangWang
Copy link
Contributor

KeXiangWang commented Nov 16, 2024

I'm still rather concerned with the Compute Node completely crashing when one Actor or Job does. Is there anything that can be done to make that more resilient?

This is actually intentional by design. Rather than forcing the system to operate under erroneous conditions, we prefer that it exposes issues as early as possible when unexpected problems arise, allowing us to fix them promptly. Imagine if our system didn't throw clear error signals for the above issues, but instead simply processed incorrect data as NULL. Users would be puzzled as to why the data they read is NULL, instead of immediately realizing that it's a system issue. This is a design choice under the Streaming workload, as streaming computations are essentially run in the background and are asynchronous. Excessive resiliency or fault tolerance (not referring to availability here) might actually increase the potential risks in the system.

From another perspective, our clients' onboarding process usually starts with a PoC, and only after stabilization do we proceed to a full deployment. We hope that the cluster can expose potential issues as much as possible during the PoC phase, reducing urgent or latent problems during official operations.

Of course, such a design requires us to consider various corner cases as much as possible during the CREATE TABLE phase, and to have clearer error messages and prompts. We will continue to make efforts in this area. Hope my explanation can ease your concerns.

@edeesis
Copy link
Author

edeesis commented Nov 17, 2024

That does make sense. In our case, we had a discrepancy in the typing from our production level environment and our test environments, which is what led to the error. Hopefully with the change, we'll be protected, but we'll also be more cautious in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants