Skip to content

Commit

Permalink
consensus: include more detailed information on network errors (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed May 11, 2022
1 parent d710f34 commit a542405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sui_core/src/consensus_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl ConsensusAdapter {
.clone()
.submit_transaction(TransactionProto { transaction: bytes })
.await
.map_err(|e| SuiError::ConsensusConnectionBroken(e.to_string()))?;
.map_err(|e| SuiError::ConsensusConnectionBroken(format!("{:?}", e)))?;
}

// Wait for the consensus to sequence the certificate and assign locks to shared objects.
Expand Down

1 comment on commit a542405

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bench results

�[0m�[0m�[1m�[32m Finished�[0m release [optimized] target(s) in 0.36s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench microbench throughput
�[2m2022-05-11T20:54:14.248641Z�[0m �[32m INFO�[0m �[2msui::benchmark�[0m�[2m:�[0m benchmark : Benchmark { committee_size: 1, send_timeout_us: 400000000, recv_timeout_us: 400000000, buffer_size: 65000, tcp_connections: 0, db_cpus: 1, use_native: false, batch_size: 2000, running_mode: SingleValidatorThread, working_dir: None, bench_type: MicroBenchmark { host: "127.0.0.1", port: 9555, type_: Throughput { num_transactions: 100000 } } }
�[2m2022-05-11T20:54:14.249247Z�[0m �[32m INFO�[0m �[2msui::benchmark::validator_preparer�[0m�[2m:�[0m authority address hex: 0x583622c65eb88e97cfbd068f67401c76388b2eb2
�[2m2022-05-11T20:54:14.249343Z�[0m �[32m INFO�[0m �[2msui::benchmark::validator_preparer�[0m�[2m:�[0m Open database on path: "/tmp/DB_0x2e51d626b8d56f67252a97a056ce9173c0c344ce"
�[2m2022-05-11T20:54:15.215334Z�[0m �[32m INFO�[0m �[2msui::benchmark::validator_preparer�[0m�[2m:�[0m Spawning a validator thread...
thread '' panicked at 'called Result::unwrap() on an Err value: InvalidMultiaddr', sui/src/benchmark/load_generator.rs:274:51
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
4: tokio::park::thread::CachedParkThread::block_on
5: tokio::runtime::thread_pool::ThreadPool::block_on
6: tokio::runtime::Runtime::block_on
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
�[2m2022-05-11T20:54:21.386758Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386762Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386849Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386882Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386925Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386922Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386943Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386926Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386932Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386959Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386960Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386967Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386968Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386973Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386980Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386971Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386995Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387006Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387018Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387025Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387029Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387030Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386970Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387040Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386977Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386981Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387049Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387050Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387058Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387059Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386984Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386983Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386986Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386992Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386990Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387001Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387002Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387003Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386972Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387005Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387012Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387015Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387042Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387044Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386966Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.387046Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
�[2m2022-05-11T20:54:21.386989Z�[0m �[31mERROR�[0m �[2msui::benchmark::load_generator�[0m�[2m:�[0m Received Error Custom { kind: Other, error: RpcError("error trying to connect: tcp connect error: Connection refused (os error 111)") }
Throughout: 644682.9771459885 tps

Please sign in to comment.