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
thread 'test::test_smart_contract_self_call_testnet' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unknown variant `Chain error: DB Not Found Error: RECEIPT ID: 6iv3hVWa7jtcAZ5UXKMnWMg6jQQ6HiD4H5wd4PwDWDoq \n Cause: Unknown \n Backtrace: 0: failure::backtrace::internal::InternalBacktrace::new\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.7/src/backtrace/internal.rs:46\n 1: failure::backtrace::Backtrace::new\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.7/src/backtrace/mod.rs:121\n 2: failure::context::Context<D>::new\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.7/src/context.rs:84\n 3: <near_chain::error::Error as core::convert::From<near_chain::error::ErrorKind>>::from\n at chain/chain/src/error.rs:269\n 4: <T as core::convert::Into<U>>::into\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/convert/mod.rs:558\n 5: near_chain::store::option_to_not_found\n at chain/chain/src/store.rs:315\n 6: <near_chain::store::ChainStore as near_chain::store::ChainStoreAccess>::get_shard_id_for_receipt_id\n at chain/chain/src/store.rs:793\n 7: near_chain::chain::Chain::get_shard_id_for_receipt_id\n at chain/chain/src/chain.rs:2067\n 8: near_client::view_client::ViewClientActor::request_receipt_outcome\n at chain/client/src/view_client.rs:216\n 9: near_client::view_client::ViewClientActor::get_tx_status\n at chain/client/src/view_client.rs:273\n 10: <near_client::view_client::ViewClientActor as actix::handler::Handler<near_client::types::TxStatus>>::handle\n at chain/client/src/view_client.rs:452\n 11: <actix::address::envelope::SyncEnvelopeProxy<A,M> as actix::address::envelope::EnvelopeProxy>::handle\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.9.0/src/address/envelope.rs:112\n 12: <actix::address::envelope::Envelope<A> as actix::address::envelope::EnvelopeProxy>::handle\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.9.0/src/address/envelope.rs:71\n 13: actix::mailbox::Mailbox<A>::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.9.0/src/mailbox.rs:101\n 14: <actix::contextimpl::ContextFut<A,C> as core::future::future::Future>::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.9.0/src/contextimpl.rs:373\n 15: <core::pin::Pin<P> as core::future::future::Future>::poll\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/future/future.rs:118\n 16: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/core.rs:163\n 17: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/loom/std/unsafe_cell.rs:14\n 18: tokio::runtime::task::core::Core<T,S>::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/core.rs:148\n 19: tokio::runtime::task::harness::Harness<T,S>::poll::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/harness.rs:108\n 20: core::ops::function::FnOnce::call_once\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/ops/function.rs:232\n 21: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:318\n 22: std::panicking::try::do_call\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:331\n 23: __rust_try\n 24: std::panicking::try\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:274\n 25: std::panic::catch_unwind\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:394\n 26: tokio::runtime::task::harness::Harness<T,S>::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/harness.rs:84\n 27: tokio::runtime::task::raw::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/raw.rs:104\n 28: tokio::runtime::task::raw::RawTask::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/raw.rs:66\n 29: tokio::runtime::task::Notified<S>::run\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/task/mod.rs:169\n 30: tokio::task::local::LocalSet::tick::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:406\n 31: tokio::coop::budget::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/coop.rs:85\n 32: std::thread::local::LocalKey<T>::try_with\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/local.rs:262\n 33: std::thread::local::LocalKey<T>::with\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/local.rs:239\n 34: tokio::coop::budget\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/coop.rs:79\n tokio::task::local::LocalSet::tick\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:406\n 35: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:527\n 36: tokio::macros::scoped_tls::ScopedKey<T>::set\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/macros/scoped_tls.rs:64\n 37: tokio::task::local::LocalSet::with\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:440\n 38: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:516\n 39: std::future::poll_with_tls_context\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/future.rs:99\n 40: tokio::task::local::LocalSet::run_until::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:390\n 41: <std::future::GenFuture<T> as core::future::future::Future>::poll\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/future.rs:44\n 42: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::{{closure}}::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/basic_scheduler.rs:131\n 43: tokio::coop::budget::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/coop.rs:97\n 44: std::thread::local::LocalKey<T>::try_with\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/local.rs:262\n 45: std::thread::local::LocalKey<T>::with\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/local.rs:239\n 46: tokio::coop::budget\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/coop.rs:79\n tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/basic_scheduler.rs:131\n 47: tokio::runtime::basic_scheduler::enter::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/basic_scheduler.rs:213\n 48: tokio::macros::scoped_tls::ScopedKey<T>::set\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/macros/scoped_tls.rs:64\n 49: tokio::runtime::basic_scheduler::enter\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/basic_scheduler.rs:213\n 50: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/basic_scheduler.rs:123\n 51: tokio::runtime::Runtime::block_on::{{closure}}\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/mod.rs:418\n 52: tokio::runtime::context::enter\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/context.rs:72\n 53: tokio::runtime::handle::Handle::enter\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/handle.rs:39\n 54: tokio::runtime::Runtime::block_on\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/runtime/mod.rs:415\n 55: tokio::task::local::LocalSet::block_on\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.18/src/task/local.rs:351\n 56: actix_rt::runtime::Runtime::block_on\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.0/src/runtime.rs:89\n 57: actix_rt::builder::SystemRunner::run\n at /home/bo_nearprotocol_com/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.1.0/src/builder.rs:164\n 58: testlib::actix_utils::ShutdownableThread::start::{{closure}}\n at test-utils/testlib/src/actix_utils.rs:20\n 59: std::sys_common::backtrace::__rust_begin_short_backtrace\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/sys_common/backtrace.rs:130\n 60: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/mod.rs:475\n 61: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:318\n 62: std::panicking::try::do_call\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:331\n 63: __rust_try\n 64: std::panicking::try\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:274\n 65: std::panic::catch_unwind\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:394\n 66: std::thread::Builder::spawn_unchecked::{{closure}}\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/thread/mod.rs:474\n 67: core::ops::function::FnOnce::call_once{{vtable.shim}}\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/ops/function.rs:232\n 68: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/boxed.rs:1017\n 69: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once\n at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/boxed.rs:1017\n std::sys_common::thread::start_thread\n at src/libstd/sys_common/thread.rs:13\n std::sys::unix::thread::Thread::new::thread_start\n at src/libstd/sys/unix/thread.rs:80\n 70: start_thread\n at /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463\n 71: __clone\n`, expected one of `TxExecutionError`, `Timeout`, `Closed`, `InternalError`", line: 0, column: 0)', test-utils/testlib/src/user/rpc_user.rs:96:29`TxExecutionError`, `Timeout`, `Closed`, `InternalError`", line: 0, column: 0)', test-utils/testlib/src/user/rpc_user.rs:96:29
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:78
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:59
4: core::fmt::write
at src/libcore/fmt/mod.rs:1069
5: std::io::Write::write_fmt
at src/libstd/io/mod.rs:1427
6: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:62
7: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:49
8: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:198
9: std::panicking::default_hook
at src/libstd/panicking.rs:218
10: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/boxed.rs:1031
11: near_primitives::test_utils::init_stop_on_panic::{{closure}}::{{closure}}
at core/primitives/src/test_utils.rs:83
12: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:515
13: rust_begin_unwind
at src/libstd/panicking.rs:419
14: core::panicking::panic_fmt
at src/libcore/panicking.rs:111
15: core::option::expect_none_failed
at src/libcore/option.rs:1211
16: core::result::Result<T,E>::unwrap
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/result.rs:1003
17: <testlib::user::rpc_user::RpcUser as testlib::user::User>::commit_transaction
at test-utils/testlib/src/user/rpc_user.rs:96
18: testlib::user::User::sign_and_commit_actions
at test-utils/testlib/src/user/mod.rs:86
19: testlib::user::User::function_call
at test-utils/testlib/src/user/mod.rs:123
20: testlib::standard_test_cases::test_smart_contract_self_call
at ./test-utils/testlib/src/standard_test_cases.rs:98
21: test_cases_testnet_rpc::test::test_smart_contract_self_call_testnet::{{closure}}
at tests/test_cases_testnet_rpc.rs:55
22: testlib::test_helpers::heavy_test
at ./test-utils/testlib/src/test_helpers.rs:17
23: test_cases_testnet_rpc::test::test_smart_contract_self_call_testnet
at tests/test_cases_testnet_rpc.rs:67
24: test_cases_testnet_rpc::test::test_smart_contract_self_call_testnet::{{closure}}
at tests/test_cases_testnet_rpc.rs:66
25: core::ops::function::FnOnce::call_once
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libcore/ops/function.rs:232
26: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/boxed.rs:1017
27: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:318
28: std::panicking::try::do_call
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:331
29: std::panicking::try
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panicking.rs:274
30: std::panic::catch_unwind
at /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/libstd/panic.rs:394
31: test::run_test_in_process
at src/libtest/lib.rs:542
32: test::run_test::run_test_inner::{{closure}}
at src/libtest/lib.rs:451
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The text was updated successfully, but these errors were encountered:
When we query transaction status we sometimes need to route the query of receipts to other shard, but we should not query local receipts as they don't need to be queried and they are not saved in storage so querying it will cause a DBNotFound error. Fixes#2539. Fixes#2551
Test plan
---------
* `gibberish.py` passes.
* `test_smart_contract_self_call_testnet` passes.
When we query transaction status we sometimes need to route the query of receipts to other shard, but we should not query local receipts as they don't need to be queried and they are not saved in storage so querying it will cause a DBNotFound error. Fixes#2539. Fixes#2551
Test plan
---------
* `gibberish.py` passes.
* `test_smart_contract_self_call_testnet` passes.
Fails consistently since b6dbf4
Example run:
http://nightly.neartest.com/run/f625606891dec008a572ca61ec37da500c2a95cd_200428_135923
Failure:
The text was updated successfully, but these errors were encountered: