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

Bug: Db(Unreachable("This feature won't go live with sql1, so delete this branching")) #3991

Open
2 tasks done
prabirshrestha opened this issue May 7, 2024 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working topic:live This is related to live queries and push notifications

Comments

@prabirshrestha
Copy link

Describe the bug

Throws error when run the example.

[examples/simple/src/main.rs:84:13] send_email.to = "hi@example.com"
[examples/simple/src/main.rs:84:13] send_email.body = "hello from mq!"
2024-05-07T03:09:24.833321Z ERROR surrealdb::api::engine::local::native: Error sending shutdown signal to task: sending on a closed channel
2024-05-07T03:09:24.833477Z ERROR surrealdb::api::engine::tasks: Node agent task failed: task 18 was cancelled
thread 'tokio-runtime-worker' panicked at /Users/prabirshrestha/.cargo/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.4.2/src/api/engine/local/native.rs:224:31:
called `Result::unwrap()` on an `Err` value: Db(Unreachable("This feature won't go live with sql1, so delete this branching"))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Steps to reproduce

git clone https://github.com/prabirshrestha/mq.git
git checkout 2cff8f8
cd examples/simple
cargo run

Expected behaviour

Work without any error.

Checkout to 451faf14c9b981b173aad960a87345a478ff23bb from mq with older version of surrealdb.

SurrealDB version

1.4.2

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@prabirshrestha prabirshrestha added bug Something isn't working triage This issue is new labels May 7, 2024
@phughk phughk self-assigned this May 13, 2024
@phughk phughk added topic:live This is related to live queries and push notifications and removed triage This issue is new labels May 13, 2024
@phughk
Copy link
Contributor

phughk commented May 13, 2024

Hi @prabirshrestha , this is happening because we had 2 query languages in 1.4.2, but we have 1 query language in 1.5.0-beta . You should be able to upgrade and this will resolve the issue.

@phughk
Copy link
Contributor

phughk commented May 13, 2024

Also @prabirshrestha , I would recommend pinning specific versions now that we have a new release model. Having specific checksums can be flakey as they don't go through the same amount of testing that we do for releases. So bugs like this can creep in. If you absolutely need that version (as opposed to 1.5.0-beta1 which was made on Friday) then you should enable the sql2 feature flag on the dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working topic:live This is related to live queries and push notifications
Projects
None yet
Development

No branches or pull requests

2 participants