Comments (2)
On running RUST_BACKTRACE=1
:
Running /home/ubuntu/snarkOS/target/debug/deps/server_connection_handler-340a7b00af4d0aa5
running 6 tests
test server_connection_handler::gossiped_peer_disconnect ... ok
test server_connection_handler::gossiped_peer_connect ... ok
test server_connection_handler::memory_pool_interval ... FAILED
test server_connection_handler::peer_disconnect ... ok
test server_connection_handler::peer_connect ... ok
test server_connection_handler::sync_node_disconnect ... ok
failures:
---- server_connection_handler::memory_pool_interval stdout ----
thread 'server_connection_handler::memory_pool_interval' panicked at 'called `Result::unwrap()` on an `Err` value: Crate("std::io", "Os { code: 111, kind: ConnectionRefused, message: \"Connection refused\" }")', /home/ubuntu/snarkOS/network/src/test_data/mod.rs:73:5
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:1063
5: std::io::Write::write_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/io/mod.rs:1426
6: std::io::impls::<impl std::io::Write for alloc::boxed::Box<W>>::write_fmt
at src/libstd/io/impls.rs:156
7: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:62
8: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:49
9: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:204
10: std::panicking::default_hook
at src/libstd/panicking.rs:221
11: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:470
12: rust_begin_unwind
at src/libstd/panicking.rs:378
13: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
14: core::option::expect_none_failed
at src/libcore/option.rs:1211
15: core::result::Result<T,E>::unwrap
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libcore/result.rs:1003
16: snarkos_network::test_data::accept_channel::{{closure}}
at ./src/test_data/mod.rs:73
17: <std::future::GenFuture<T> as core::future::future::Future>::poll
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/future.rs:44
18: std::future::poll_with_tls_context
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/future.rs:102
19: server_connection_handler::server_connection_handler::memory_pool_interval::{{closure}}::{{closure}}
at network/tests/server_connection_handler.rs:313
20: <std::future::GenFuture<T> as core::future::future::Future>::poll
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/future.rs:44
21: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::{{closure}}::{{closure}}
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/basic_scheduler.rs:131
22: tokio::coop::with_budget::{{closure}}
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:127
23: std::thread::local::LocalKey<T>::try_with
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/thread/local.rs:262
24: std::thread::local::LocalKey<T>::with
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/thread/local.rs:239
25: tokio::coop::with_budget
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:120
26: tokio::coop::budget
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:96
27: tokio::runtime::enter::Enter::block_on
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/enter.rs:163
28: tokio::runtime::thread_pool::ThreadPool::block_on
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/mod.rs:82
29: tokio::runtime::Runtime::block_on::{{closure}}
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/mod.rs:446
30: tokio::runtime::context::enter
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/context.rs:72
31: tokio::runtime::handle::Handle::enter
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/handle.rs:76
32: tokio::runtime::Runtime::block_on
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/mod.rs:441
33: server_connection_handler::server_connection_handler::memory_pool_interval::{{closure}}
at network/tests/server_connection_handler.rs:286
34: core::ops::function::FnOnce::call_once
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libcore/ops/function.rs:232
35: serial_test::serial_core
at /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/serial_test-0.4.0/src/lib.rs:64
36: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/liballoc/boxed.rs:1017
37: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/panic.rs:318
38: std::panicking::try::do_call
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/panicking.rs:303
39: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:86
40: std::panicking::try
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/panicking.rs:281
41: std::panic::catch_unwind
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libstd/panic.rs:394
42: test::run_test_in_process
at src/libtest/lib.rs:542
43: 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.
failures:
server_connection_handler::memory_pool_interval
test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '--test server_connection_handler'
from snarkos.
The issue was traced down to the client attempting to connect to the server before the server had a chance to spin up. By introducing a brief waiting period, we are able to ensure the server is ready to connect when the client attempts to bind.
from snarkos.
Related Issues (20)
- unable to connect to xxx -time out HOT 1
- the network (0) is not support HOT 1
- [Bug] HOT 2
- [Feature] Add sync status information for latest height given by REST api
- [Feature] Amend superfluous is_peer_far_in_future check
- [Feature] Store batch proposal to disk on shutdown HOT 8
- [Proposal] Integrating Uptimes and Downtimes of the blockchain into Atlassian Statuspage
- [Bug] HOT 3
- [Feature]
- [Bug] test_connection_cleanups is flaky HOT 2
- [Bug] Peers are not sufficiently connecting to each other HOT 2
- [Bug] Expire or persist Batch Proposals HOT 1
- [Feature] Need a way to NOT change REST port number when --dev parameter is specified HOT 1
- [Bug] Due to changes from PR #3217, BFT sync logic is not safe, 2 malicious validators can send invalid block_locators and blocks to other nodes and halt the network HOT 4
- aleo.tools is not available HOT 2
- [Bug] Attacker can exploit validator node memory leak to halt the network HOT 5
- [Bug]Malicious validator send fake block locator and halt the network(node is syncing)
- [Bug]Malicious validator send invalid `BatchPropose` and block the `CertificateRequest`
- [Bug] Malicious validator can send fake block locator and halt the network(node is syncing) HOT 5
- [Bug] Malicious validator attack disrupts consensus by blocking certificate request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snarkos.