Conflux-Chain / conflux-rust

The official Rust implementation of Conflux protocol. https://doc.confluxnetwork.org
https://doc.confluxnetwork.org
GNU General Public License v3.0
657 stars 196 forks source link

test failed #1940

Closed indexroot closed 3 years ago

indexroot commented 4 years ago

os: mac

git checkout v0.6.3

cargo test --release --all

。。。

error: test failed, to rerun pass '-p cfxcore --lib'

Caused by: process didn't exit successfully: /Users/indexroot/confluxProjects/conflux-rust/target/release/deps/cfxcore-68c52898dee7f7d9 (signal: 11, SIGSEGV: invalid memory reference)

Thegaram commented 4 years ago

Thanks for reporting this. I am unable to reproduce it on my Mac. Does the compiled executable work as expected?

Could you try running cargo test --release --all -- --nocapture and sharing the output?

indexroot commented 4 years ago

v0.6.3

➜  conflux-rust git:(a87ba40f) cargo test --release --all -- --nocapture
    Finished release [optimized] target(s) in 13.50s
     Running target/release/deps/blockgen-6e9e87e76b9af7b2

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_bytes-87d0aff62274ffef

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_stratum-f9e7bf4df1eb04ca

running 3 tests
test tests::can_be_started ... ok
test tests::can_subscribe ... ok
test tests::can_push_work ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_types-57a92867bf735c39

running 1 test
test address_util::tests::test_set_type_bits ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_utils-1ecd5c51933df25b

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfxcore-68c52898dee7f7d9

running 192 tests
thread 'builtin::tests::from_unknown_linear' panicked at 'invalid builtin name: foo', core/src/builtin.rs:230:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test builtin::tests::from_named_linear ... ok
test builtin::tests::bn128_pairing_empty ... ok
test builtin::tests::bn128_pairing_fragmented ... ok
test builtin::tests::from_unknown_linear ... ok
test builtin::tests::identity ... ok
test builtin::tests::is_active ... ok
test builtin::tests::bn128_add ... ok
test builtin::tests::bn128_pairing_notcurve ... ok
test builtin::tests::modexp_func ... ok
test builtin::tests::ripemd160 ... ok
test builtin::tests::bn128_mul ... ok
test builtin::tests::sha256 ... ok
test evm::evm::tests::should_calculate_overflow_mul_shr_with_overflow ... ok
test evm::evm::tests::should_calculate_overflow_mul_shr_without_overflow ... ok
test evm::evm::tests::should_validate_u256_to_usize_conversion ... ok
test builtin::tests::modexp ... ok
test evm::instructions::tests::test_get_dup_position ... ok
test evm::instructions::tests::test_get_log_topics ... ok
test evm::instructions::tests::test_get_push_bytes ... ok
test evm::instructions::tests::test_get_swap_position ... ok
test channel::tests::test_sync ... ok
test channel::tests::test_drop_receivers ... ok
test channel::tests::test_drop_sender ... ok
test evm::factory::test_create_vm ... ok
test evm::interpreter::gasometer::test_calculate_mem_cost ... ok
test evm::instructions::tests::test_is_push ... ok
test evm::interpreter::gasometer::test_mem_gas_cost ... ok
test evm::interpreter::memory::tests::test_memory_read_and_write ... ok
test builtin::tests::ecrecover ... ok
test evm::interpreter::memory::tests::test_memory_read_and_write_byte ... ok
test evm::interpreter::memory::tests::test_memory_read_slice_and_write_slice ... ok
test evm::interpreter::shared_cache::test_find_jump_and_sub_allowing_unknown_opcodes ... ok
test evm::interpreter::shared_cache::test_find_jump_destinations ... ok
test evm::interpreter::shared_cache::test_find_jump_destinations_not_in_data_segments ... ok
test evm::interpreter::shared_cache::test_find_sub_entrypoints ... ok
test channel::tests::test_async ... ok
test evm::tests::test_badinstruction_int ... ok
test channel::tests::test_ring ... ok
test evm::interpreter::tests::should_not_overflow_returndata ... ok
test evm::tests::test_add_int ... ok
test evm::tests::test_address_int ... ok
test evm::tests::test_blockhash_int ... ok
test evm::tests::test_bitops_int ... ok
test evm::tests::test_addmod_mulmod_int ... ok
test evm::tests::test_author_int ... ok
test evm::interpreter::tests::should_not_fail_on_tracing_mem ... ok
test evm::tests::test_byte_int ... ok
test evm::tests::test_calldataload_int ... ok
test evm::tests::test_chain_id_int ... ok
test evm::tests::test_comparison_int ... ok
test evm::tests::test_difficulty_int ... ok
test evm::tests::test_div_int ... ok
test evm::tests::test_div_zero_int ... ok
test evm::tests::test_exp_int ... ok
test evm::tests::test_extcodecopy_int ... ok
test evm::tests::test_create_in_staticcall_int ... ok
test evm::tests::test_gas_limit_int ... ok
test evm::tests::test_extops_int ... ok
test evm::tests::test_log_empty_int ... ok
test evm::tests::test_calls_int ... ok
test evm::tests::test_jumps_int ... ok
test evm::tests::test_log_sender_int ... ok
test evm::tests::test_mod_int ... ok
test evm::tests::test_mul_int ... ok
test evm::tests::test_number_int ... ok
test evm::tests::test_origin_int ... ok
test evm::tests::test_pop_int ... ok
test evm::tests::test_sdiv_int ... ok
test evm::tests::test_selfbalance_int ... ok
test evm::tests::test_sender_int ... ok
test evm::tests::test_sha3_int ... ok
test evm::tests::test_signed_comparison_int ... ok
test evm::tests::test_signextend_int ... ok
test evm::tests::test_smod_int ... ok
test evm::tests::test_sub_int ... ok
test evm::tests::test_subs_invalid_jump_int ... ok
test evm::tests::test_subs_shallow_return_stack_int ... ok
test evm::tests::test_subs_simple_int ... ok
test evm::tests::test_subs_sub_at_end_int ... ok
test evm::tests::test_subs_two_levels_int ... ok
test evm::tests::test_subs_walk_into_subroutine_int ... ok
test evm::tests::test_timestamp_int ... ok
test evm::tests::test_subs_substack_limit_int ... ok
test evm::tests::test_subs_substack_out_int ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/21/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/25/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/26/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/28/storage_db
thread 'executive::context::tests::can_call_fail_empty' panicked at 'assertion failed: trap', core/src/executive/context.rs:241:9
test executive::context::tests::can_call_fail_empty ... ok
test executive::context::tests::can_log ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
test executive::executive_tests::test_contract_address ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/28/storage_db
test executive::context::tests::can_create ... ok
test executive::context::tests::can_suiside ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
test executive::context::tests::can_return_block_hash_no_env ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/21/storage_db
test executive::context::tests::can_be_created ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
test executive::executive_tests::test_call_to_create ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/26/storage_db
test executive::context::tests::can_create2 ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/25/storage_db
test executive::executive_tests::test_keccak ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
test executive::executive_tests::test_create_contract_out_of_depth ... ok
test executive::executive_tests::test_not_enough_cash ... ok
test light_protocol::handler::sync::common::priority_queue::tests::test_priority_queue ... ok
test light_protocol::handler::sync::headers::tests::test_ordering ... ok
test light_protocol::handler::sync::headers::tests::test_queue ... ok
test executive::executive_tests::test_commission_privilege ... ok
test executive::executive_tests::test_deposit_withdraw_lock ... ok
test state::account_entry_tests::test_clone_overwrite ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/21/storage_db
test message::test::test_message_id_encode_decode ... ok
test state::account_entry_tests::test_overlay_account_create ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
test light_protocol::handler::sync::common::future_item::tests::test_concurrent_access ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
test executive::executive_tests::test_suicide_when_creation ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
test executive::executive_tests::test_revert ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
test executive::executive_tests::test_storage_commission_privilege ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/25/storage_db
test executive::executive_tests::test_sender_balance ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/26/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
test state::state_tests::checkpoint_nested ... ok
test state::account_entry_tests::test_deposit_and_withdraw ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/21/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/25/storage_db
test state::state_tests::checkpoint_get_storage_at ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
test state::state_tests::checkpoint_basic ... ok
test state::state_tests::checkpoint_from_empty_get_storage_at ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
test state::state_tests::checkpoint_revert_to_get_storage_at ... ok
test state::substate::tests::accrue ... ok
test state::substate::tests::created ... ok
test state::substate::tests::test_callstack_info ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
Verified first 7652 items in final lru cache state
test storage::impls::delta_mpt::cache::algorithm::tests::lru::test_lru_algorithm::test_lru_algorithm ... ok
test state::state_tests::test_automatic_collateral_contract_account ... ok
test state::state_tests::create_contract_fail ... ok
test storage::impls::delta_mpt::cache::algorithm::tests::removable_heap::test_corner_cases ... ok
test storage::impls::delta_mpt::cache::algorithm::tests::lru::test_lru_algorithm_size_1::test_lru_algorithm_size_1 ... ok
test storage::impls::delta_mpt::cache::algorithm::tests::recent_lfu::r_lfu_algorithm_smoke_test ... ok
test storage::impls::delta_mpt::mem_optimized_trie_node::test_mem_optimized_trie_node_size ... ok
test state::state_tests::create_contract_fail_previous_storage ... ok
test storage::impls::delta_mpt::cache::algorithm::tests::removable_heap::test_sort_with_heap_handle_check ... ok
test state::state_tests::test_automatic_collateral_normal_account ... ok
test state::state_tests::kill_account_with_checkpoints ... ok
test storage::impls::delta_mpt::tests::children_table::test_no_alloc_in_empty_children_table ... ok
test storage::impls::delta_mpt::tests::rlp_encode_decode::test_empty_children_table_encode_decode ... ok
test storage::impls::delta_mpt::tests::rlp_encode_decode::test_full_children_table_encode_decode ... ok
test storage::impls::delta_mpt::tests::rlp_encode_decode::test_node_ref_delta_mpt_compact_encode_decode ... ok
test storage::impls::delta_mpt::tests::rlp_encode_decode::test_non_empty_children_table_encode_decode ... ok
test storage::impls::delta_mpt::tests::rlp_encode_decode::test_trie_node_encode_decode ... ok
test storage::impls::merkle_patricia_trie::compressed_path::tests::test_compressed_path_raw_memory_manager_size ... ok
test storage::impls::merkle_patricia_trie::maybe_in_place_byte_array::test_maybe_inplace_byte_array_size_is_8_bytes ... ok
test storage::impls::merkle_patricia_trie::simple_mpt::tests::test_into_simple_mpt_key ... ok
test storage::impls::merkle_patricia_trie::simple_mpt::tests::test_min_repr_bytes ... ok
test storage::impls::delta_mpt::tests::children_table::test_children_table_iteration_modification ... ok
test storage::impls::merkle_patricia_trie::tests::trie_proof_test::test_proofs ... ok
test storage::impls::merkle_patricia_trie::tests::trie_proof_test::test_rlp ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/21/storage_db
test storage::impls::delta_mpt::tests::children_table::test_children_table_iteration ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
test storage::impls::delta_mpt::cache::algorithm::tests::removable_heap::test_removal_and_sort_with_heap_handle_check ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/24/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
test storage::impls::merkle_patricia_trie::simple_mpt::tests::test_simple_mpt_proof ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/25/storage_db
test storage::impls::delta_mpt::tests::children_table::test_children_table_type_conversions ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/26/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
test state::account_entry_tests::test_vote_lock ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/23/storage_db
test storage::impls::delta_mpt::tests::children_table::test_children_table_updates ... ok
test storage::tests::sharded_iter_merger::test_key_prefix_and_shard_id ... ok
test pow::test_octopus ... ok
test_sharded_iter_merger(): Initialization done.
test_sharded_iter_merger(): Iteration done.
test storage::tests::sharded_iter_merger::test_sharded_iter_merger ... ok
chunk_size_limit = 205162, chunk_size [205157, 205149, 205152, 205150, 205156, 48]
chunk_size_limit = 170968, chunk_size [170951, 170964, 170952, 170958, 170951, 170952, 84]
chunk_size_limit = 146544, chunk_size [146544, 146537, 146537, 146534, 146533, 146541, 146538, 48]
chunk_size_limit = 128226, chunk_size [128212, 128213, 128218, 128224, 128214, 128214, 128213, 128220, 84]
chunk_size_limit = 113979, chunk_size [113977, 113970, 113968, 113969, 113963, 113978, 113965, 113971, 113967, 84]
chunk_size_limit = 102581, chunk_size [102569, 102570, 102574, 102570, 102566, 102569, 102559, 102565, 102572, 102574, 124]
chunk_size_limit = 93255, chunk_size [93247, 93248, 93233, 93237, 93243, 93249, 93236, 93233, 93253, 93249, 93235, 149]
chunk_size_limit = 85484, chunk_size [85481, 85470, 85474, 85470, 85468, 85469, 85474, 85477, 85477, 85474, 85470, 85484, 124]
chunk_size_limit = 78908, chunk_size [78903, 78894, 78898, 78903, 78896, 78899, 78895, 78901, 78900, 78900, 78899, 78896, 78904, 124]
chunk_size_limit = 73272, chunk_size [73248, 73272, 73270, 73269, 73257, 73261, 73272, 73257, 73257, 73261, 73270, 73250, 73267, 73252, 149]
chunk_size_limit = 68387, chunk_size [68384, 68378, 68377, 68386, 68370, 68366, 68381, 68375, 68382, 68384, 68368, 68370, 68371, 68385, 68386, 149]
chunk_size_limit = 64113, chunk_size [64112, 64100, 64107, 64106, 64102, 64094, 64095, 64092, 64110, 64100, 64107, 64101, 64104, 64112, 64099, 64098, 173]
chunk_size_limit = 60341, chunk_size [60335, 60328, 60323, 60339, 60335, 60333, 60330, 60324, 60333, 60341, 60341, 60334, 60328, 60335, 60334, 60327, 60319, 173]
chunk_size_limit = 56989, chunk_size [56977, 56976, 56979, 56976, 56985, 56981, 56977, 56984, 56973, 56975, 56985, 56973, 56978, 56989, 56988, 56979, 56971, 56969, 197]
chunk_size_limit = 53990, chunk_size [53970, 53976, 53988, 53970, 53974, 53986, 53971, 53983, 53977, 53971, 53977, 53987, 53972, 53981, 53979, 53986, 53985, 53979, 53982, 218]
test storage::tests::snapshot::slicer::test_slicing_position ... ok
test storage::tests::snapshot::test_delete_all ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
Checking snapshot mpt formation of 0 keys with expected merkle_root 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 and number of nodes 0
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
Checking snapshot mpt formation of 10161 keys with expected merkle_root 0xd908d3b4cf343b5169f5720438029675b535f4d4b4e14ad20845818ba394ab3d and number of nodes 13946
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
Checking snapshot mpt formation of 10098 keys with expected merkle_root 0x56595af4fe1cadf52edec2876a5f305a47d863a83730cda2b3e7d18367a96fa7 and number of nodes 13873
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
Checking snapshot mpt formation of 10000 keys with expected merkle_root 0xeea807a23fa82910baa6735493d824aae33b9e5d1362aedf1e921d3ae22fa7f4 and number of nodes 13776
test storage::tests::snapshot::test_inserts_deletes_and_subtree_size ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/27/storage_db
test storage::tests::snapshot::test_mpt_node_path_to_from_db_key ... ok
test storage::tests::proofs::test_invalid_state_proof ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
Checking snapshot mpt formation of 9923 keys with expected merkle_root 0x475c68bf9fcbd399eacf491f60322409f757294fbd2a00d6c460d4acd666f9f5 and number of nodes 13667
new StorageManager within storage_dir ./conflux_unit_test_data_dir/22/storage_db
Checking snapshot mpt formation of 9914 keys with expected merkle_root 0x02bc4c28b9bf97b1139471188347e3c4d0db43b57c638ad7317a6ad9d8df7e47 and number of nodes 13664
test storage::tests::snapshot::test_merkle_root ... ok

error: test failed, to rerun pass '-p cfxcore --lib'

Caused by:
  process didn't exit successfully: `/Users/indexroot/confluxProjects/conflux-rust/target/release/deps/cfxcore-68c52898dee7f7d9 --nocapture` (signal: 11, SIGSEGV: invalid memory reference)
Thegaram commented 4 years ago

These two seem problematic.

thread 'builtin::tests::from_unknown_linear' panicked at 'invalid builtin name: foo', core/src/builtin.rs:230:14
thread 'executive::context::tests::can_call_fail_empty' panicked at 'assertion failed: trap', core/src/executive/context.rs:241:9

@ChenxingLi Do you know what might cause this?

indexroot commented 4 years ago

v1.0.0

➜  conflux-rust git:(master) ✗ cargo test --release --all -- --nocapture
   Compiling conflux v1.0.0 (/Users/indexroot/confluxProjects/conflux-rust)
    Finished release [optimized] target(s) in 20.97s
     Running target/release/deps/blockgen-7c98bdcea170d3f5

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_bytes-43efadeaafde9677

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_internal_common-b42a7902fcba9ab6

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_parameters-0fd5972af20b208b

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_statedb-eea54eb5acc59a94

running 3 tests
test tests::test_checkpoint_evict_memory ... ok
test tests::test_checkpoint ... ok
test tests::test_basic ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/cfx_storage-1419819c4014e980

running 55 tests
test impls::delta_mpt::mem_optimized_trie_node::test_mem_optimized_trie_node_size ... ok
test impls::delta_mpt::cache::algorithm::tests::removable_heap::test_corner_cases ... ok
test impls::delta_mpt::cache::algorithm::tests::recent_lfu::r_lfu_algorithm_smoke_test ... ok
Verified first 7652 items in final lru cache state
test impls::delta_mpt::cache::algorithm::tests::lru::test_lru_algorithm::test_lru_algorithm ... ok
test impls::delta_mpt::tests::children_table::test_no_alloc_in_empty_children_table ... ok
test impls::delta_mpt::tests::rlp_encode_decode::test_empty_children_table_encode_decode ... ok
test impls::delta_mpt::tests::rlp_encode_decode::test_full_children_table_encode_decode ... ok
test impls::delta_mpt::cache::algorithm::tests::removable_heap::test_sort_with_heap_handle_check ... ok
test impls::delta_mpt::cache::algorithm::tests::lru::test_lru_algorithm_size_1::test_lru_algorithm_size_1 ... ok
test impls::delta_mpt::tests::rlp_encode_decode::test_node_ref_delta_mpt_compact_encode_decode ... ok
test impls::delta_mpt::tests::rlp_encode_decode::test_non_empty_children_table_encode_decode ... ok
test impls::delta_mpt::tests::rlp_encode_decode::test_trie_node_encode_decode ... ok
test impls::merkle_patricia_trie::compressed_path::tests::test_compressed_path_raw_memory_manager_size ... ok
test impls::merkle_patricia_trie::maybe_in_place_byte_array::test_maybe_inplace_byte_array_size_is_8_bytes ... ok
test impls::merkle_patricia_trie::simple_mpt::tests::test_empty_simple_mpt ... ok
test impls::merkle_patricia_trie::simple_mpt::tests::test_into_simple_mpt_key ... ok
test impls::merkle_patricia_trie::simple_mpt::tests::test_min_repr_bytes ... ok
test impls::merkle_patricia_trie::tests::trie_proof_test::test_proofs ... ok
test impls::merkle_patricia_trie::tests::trie_proof_test::test_rlp ... ok
test impls::storage_db::snapshot_mpt::tests::check_snapshot_mpt_by_iter ... ok
test impls::storage_db::snapshot_mpt::tests::check_snapshot_mpt_integrity ... ok
test impls::storage_db::snapshot_mpt::tests::check_snapshot_mpt_root ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir5466399142672705923/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir14047437394311213098/storage_db
test impls::delta_mpt::tests::children_table::test_children_table_iteration_modification ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir9640030771996270991/storage_db
test impls::delta_mpt::tests::children_table::test_children_table_iteration ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir17508694918427753225/storage_db
test impls::merkle_patricia_trie::simple_mpt::tests::test_simple_mpt_proof ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir11875232554516946110/storage_db
test impls::delta_mpt::cache::algorithm::tests::removable_heap::test_removal_and_sort_with_heap_handle_check ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir7787858379511699984/storage_db
test impls::delta_mpt::tests::children_table::test_children_table_type_conversions ... ok
test tests::sharded_iter_merger::test_key_prefix_and_shard_id ... ok
test impls::delta_mpt::tests::children_table::test_children_table_updates ... ok
thread 'tests::proofs::test_valid_state_proof_for_existing_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(SqliteError(Error { code: Some(14), message: Some("unable to open database file") }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test tests::proofs::test_valid_state_proof_for_existing_key ... FAILED
thread 'tests::proofs::test_valid_node_merkle_proof_for_existing_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(SqliteError(Error { code: Some(14), message: Some("unable to open database file") }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10
thread 'tests::proofs::test_valid_state_proof_for_nonexistent_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(SqliteError(Error { code: Some(14), message: Some("unable to open database file") }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10
thread 'tests::proofs::test_invalid_state_proof' panicked at 'called `Result::unwrap()` on an `Err` value: Error(SqliteError(Error { code: Some(14), message: Some("unable to open database file") }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10
test tests::proofs::test_valid_node_merkle_proof_for_existing_key ... FAILED
test tests::proofs::test_valid_state_proof_for_nonexistent_key ... FAILED
new StorageManager within storage_dir ./conflux_unit_test_data_dir4667697079053007868/storage_db
test tests::proofs::test_invalid_state_proof ... FAILED
new StorageManager within storage_dir ./conflux_unit_test_data_dir5964374202395044647/storage_db
Checking snapshot mpt formation of 0 keys with expected merkle_root 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 and number of nodes 0
test tests::snapshot::test_mpt_node_path_to_from_db_key ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir1576953422789854820/storage_db
Checking snapshot mpt formation of 10161 keys with expected merkle_root 0xd908d3b4cf343b5169f5720438029675b535f4d4b4e14ad20845818ba394ab3d and number of nodes 13946
chunk_size_limit = 205162, chunk_size [205157, 205149, 205152, 205150, 205156, 48]
chunk_size_limit = 170968, chunk_size [170951, 170964, 170952, 170958, 170951, 170952, 84]
chunk_size_limit = 146544, chunk_size [146544, 146537, 146537, 146534, 146533, 146541, 146538, 48]
chunk_size_limit = 128226, chunk_size [128212, 128213, 128218, 128224, 128214, 128214, 128213, 128220, 84]
chunk_size_limit = 113979, chunk_size [113977, 113970, 113968, 113969, 113963, 113978, 113965, 113971, 113967, 84]
chunk_size_limit = 102581, chunk_size [102569, 102570, 102574, 102570, 102566, 102569, 102559, 102565, 102572, 102574, 124]
chunk_size_limit = 93255, chunk_size [93247, 93248, 93233, 93237, 93243, 93249, 93236, 93233, 93253, 93249, 93235, 149]
chunk_size_limit = 85484, chunk_size [85481, 85470, 85474, 85470, 85468, 85469, 85474, 85477, 85477, 85474, 85470, 85484, 124]
chunk_size_limit = 78908, chunk_size [78903, 78894, 78898, 78903, 78896, 78899, 78895, 78901, 78900, 78900, 78899, 78896, 78904, 124]
chunk_size_limit = 73272, chunk_size [73248, 73272, 73270, 73269, 73257, 73261, 73272, 73257, 73257, 73261, 73270, 73250, 73267, 73252, 149]
chunk_size_limit = 68387, chunk_size [68384, 68378, 68377, 68386, 68370, 68366, 68381, 68375, 68382, 68384, 68368, 68370, 68371, 68385, 68386, 149]
chunk_size_limit = 64113, chunk_size [64112, 64100, 64107, 64106, 64102, 64094, 64095, 64092, 64110, 64100, 64107, 64101, 64104, 64112, 64099, 64098, 173]
chunk_size_limit = 60341, chunk_size [60335, 60328, 60323, 60339, 60335, 60333, 60330, 60324, 60333, 60341, 60341, 60334, 60328, 60335, 60334, 60327, 60319, 173]
chunk_size_limit = 56989, chunk_size [56977, 56976, 56979, 56976, 56985, 56981, 56977, 56984, 56973, 56975, 56985, 56973, 56978, 56989, 56988, 56979, 56971, 56969, 197]
chunk_size_limit = 53990, chunk_size [53970, 53976, 53988, 53970, 53974, 53986, 53971, 53983, 53977, 53971, 53977, 53987, 53972, 53981, 53979, 53986, 53985, 53979, 53982, 218]
test tests::snapshot::slicer::test_slicing_position ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir15235590370198840605/storage_db
Checking snapshot mpt formation of 10098 keys with expected merkle_root 0x56595af4fe1cadf52edec2876a5f305a47d863a83730cda2b3e7d18367a96fa7 and number of nodes 13873
test_sharded_iter_merger(): Initialization done.
new StorageManager within storage_dir ./conflux_unit_test_data_dir6743042727103154621/storage_db
test_sharded_iter_merger(): Iteration done.
test tests::sharded_iter_merger::test_sharded_iter_merger ... ok
Checking snapshot mpt formation of 10000 keys with expected merkle_root 0xeea807a23fa82910baa6735493d824aae33b9e5d1362aedf1e921d3ae22fa7f4 and number of nodes 13776
new StorageManager within storage_dir ./conflux_unit_test_data_dir1148676802651985536/storage_db
Checking snapshot mpt formation of 9923 keys with expected merkle_root 0x475c68bf9fcbd399eacf491f60322409f757294fbd2a00d6c460d4acd666f9f5 and number of nodes 13667
test tests::snapshot::test_two_way_merge ... ok
test tests::snapshot::test_delete_all ... ok
test tests::snapshot::verifier::test_slice_verifier_zero_or_one_chunk ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir6211983985838088400/storage_db
test tests::snapshot::verifier::test_full_sync_verifier ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir11182561774571034439/storage_db
verified 10000 key values.
test tests::state::test_empty_genesis_block ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir8872244258632213071/storage_db
new StorageManager within storage_dir ./conflux_unit_test_data_dir15016878378650234944/storage_db
Testing with 99999 set operations.
Setting state_0 with 20000 keys.
verified 20000 key values.
verified 30000 key values.
Set new 10000 keys for state_1.
Checking snapshot mpt formation of 9914 keys with expected merkle_root 0x02bc4c28b9bf97b1139471188347e3c4d0db43b57c638ad7317a6ad9d8df7e47 and number of nodes 13664
Reading overlapping 10000 keys from state_0 and set new keys for state_1.
test chunk 0, chunk range 0..9981, chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
Reading untouched 10000 keys from state_0 in state_1.
Reading modified 10000 keys in state_1.
test key omit, chunk 0, chunk range 0..9981, omit index 0, kv: ([0, 1, 26, 247, 116, 134, 0, 230], [0, 1, 26, 247, 116, 134]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test key omit, chunk 0, chunk range 0..9981, omit index 1, kv: ([0, 1, 108, 241, 108, 139, 136, 62], [0, 1, 108, 241, 108, 139, 136, 62, 0]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test tests::snapshot::test_merkle_root ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir15980013396130124491/storage_db
Testing with 99999 set operations.
test key omit, chunk 0, chunk range 0..9981, omit index 2, kv: ([0, 1, 227, 98, 12, 91, 2, 198], [0, 1, 227, 98, 12, 91, 2, 198, 0, 1, 227]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test tests::state::test_get_set_at_second_commit ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir10035445475307511246/storage_db
test key omit, chunk 0, chunk range 0..9981, omit index 3, kv: ([0, 2, 88, 177, 105, 199, 42, 5], [0, 2, 88, 177, 105, 199, 42, 5, 0, 2, 88, 177, 105]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
Testing with 50014 set operations.
test key omit, chunk 0, chunk range 0..9981, omit index 4, kv: ([0, 8, 78, 113, 172, 215, 150, 71], [0, 8, 78, 113, 172, 215, 150, 71, 0, 8, 78, 113, 172]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
Testing with 99999 delete operations.
test key omit, chunk 0, chunk range 0..9981, omit index 4990, kv: ([25, 65, 208, 201, 5, 109, 25, 90], [25, 65, 208, 201, 5, 109, 25, 90]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test key omit, chunk 0, chunk range 0..9981, omit index 9976, kv: ([50, 210, 92, 151, 74, 157, 7, 64], [50, 210, 92, 151, 74, 157, 7, 64, 50, 210, 92, 151]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test key omit, chunk 0, chunk range 0..9981, omit index 9977, kv: ([50, 210, 111, 234, 98, 122, 69, 164], [50, 210, 111, 234, 98, 122, 69, 164, 50, 210, 111, 234, 98, 122, 69]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test tests::state::test_set_delete ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir693476111452076043/storage_db
test key omit, chunk 0, chunk range 0..9981, omit index 9978, kv: ([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test key omit, chunk 0, chunk range 0..9981, omit index 9979, kv: ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
Setting state_0 with 250487 keys.
Testing with 99999 delete_all operations.
test key omit, chunk 0, chunk range 0..9981, omit index 9980, kv: ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18]),chunk_last_kvs [([50, 210, 205, 3, 197, 187, 36, 158], [50, 210, 205, 3, 197, 187, 36, 158, 50, 210, 205, 3]), ([50, 211, 225, 22, 154, 19, 39, 85], [50, 211, 225, 22, 154, 19, 39, 85, 50, 211, 225]), ([50, 212, 91, 249, 195, 59, 12, 18], [50, 212, 91, 249, 195, 59, 12, 18])]
test tests::state::test_set_get ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir15186025849970498859/storage_db
Setting state_0 with 4948 keys.
test chunk 1, chunk range 9981..19975, chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
verified 10000 key values.
Setting state_1 with 4948 keys.
verified 20000 key values.
test key omit, chunk 1, chunk range 9981..19975, omit index 9981, kv: ([50, 213, 64, 172, 54, 111, 167, 191], [50, 213, 64, 172, 54, 111, 167, 191, 50, 213, 64]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 9982, kv: ([50, 213, 109, 138, 226, 100, 223, 48], [50, 213, 109, 138, 226, 100, 223, 48]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 9983, kv: ([50, 214, 3, 173, 24, 23, 20, 43], [50, 214, 3, 173, 24, 23, 20, 43, 50, 214, 3, 173]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 9984, kv: ([50, 215, 46, 249, 11, 186, 192, 36], [50, 215, 46, 249, 11, 186, 192, 36, 50, 215, 46, 249, 11]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 9985, kv: ([50, 215, 125, 206, 54, 79, 50, 143], [50, 215, 125, 206, 54, 79, 50, 143, 50, 215, 125]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 14978, kv: ([75, 240, 187, 111, 174, 57, 218, 158], [75, 240, 187, 111, 174, 57, 218, 158, 75, 240, 187, 111, 174, 57, 218]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
verified 30000 key values.
test key omit, chunk 1, chunk range 9981..19975, omit index 19970, kv: ([101, 164, 244, 188, 114, 180, 199, 212], [101, 164, 244, 188, 114, 180, 199, 212, 101, 164, 244]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 19971, kv: ([101, 165, 80, 75, 95, 217, 205, 32], [101, 165, 80, 75, 95, 217, 205]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test tests::snapshot::test_inserts_deletes_and_subtree_size ... ok
new StorageManager within storage_dir ./conflux_unit_test_data_dir17909868696993337487/storage_db
test tests::state::test_set_order_concurrent ... ok
Test field 0: 11
Test field 1: 2.3
Test field 2: 5 8
Test field 3: 13 21
Test field 0: 11
Test field 1: 2.3
Test field 0: 11
Test field 1: 2.3
Test field 2: [53, 32, 56]
Test field 3: [49, 51, 32, 50, 49]
Test field 1: 2.3
Test total fields 4
test utils::tuple::test::test ... ok
Build 40 epochs for testing, 10 epochs a snapshot.
test key omit, chunk 1, chunk range 9981..19975, omit index 19972, kv: ([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
Initializing 99999 accounts
test tests::state::test_set_delete_all ... ok
test key omit, chunk 1, chunk range 9981..19975, omit index 19973, kv: ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test key omit, chunk 1, chunk range 9981..19975, omit index 19974, kv: ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98]),chunk_last_kvs [([101, 166, 100, 25, 215, 9, 119, 5], [101, 166, 100, 25, 215, 9, 119, 5, 101, 166, 100]), ([101, 166, 120, 91, 178, 75, 126, 93], [101, 166, 120, 91, 178, 75, 126, 93, 101, 166, 120, 91]), ([101, 166, 154, 140, 98, 5, 179, 77], [101, 166, 154, 140, 98, 5, 179, 77, 101, 166, 154, 140, 98])]
test chunk 2, chunk range 19975..30005, chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 19975, kv: ([101, 166, 222, 234, 29, 224, 82, 201], [101, 166, 222, 234, 29, 224, 82, 201, 101, 166, 222, 234, 29]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 19976, kv: ([101, 169, 60, 208, 253, 77, 175, 246], [101, 169, 60, 208, 253, 77, 175, 246, 101, 169, 60, 208, 253, 77, 175]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 19977, kv: ([101, 169, 184, 42, 220, 65, 31, 97], [101, 169, 184, 42, 220, 65, 31, 97, 101, 169, 184, 42]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 19978, kv: ([101, 170, 155, 166, 251, 90, 214, 243], [101, 170, 155, 166, 251, 90, 214, 243]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 19979, kv: ([101, 171, 168, 153, 165, 235, 70, 189], [101, 171, 168, 153, 165, 235, 70, 189, 101, 171, 168, 153, 165, 235, 70]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 24990, kv: ([127, 77, 86, 62, 71, 207, 44, 192], [127, 77, 86, 62, 71, 207, 44, 192]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 30000, kv: ([152, 229, 56, 122, 123, 166, 245, 49], [152, 229, 56, 122, 123, 166]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 30001, kv: ([152, 231, 101, 213, 87, 144, 240, 209], [152, 231, 101, 213, 87, 144, 240, 209, 152, 231, 101, 213]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 30002, kv: ([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test tests::snapshot::verifier::test_full_sync_verifier_one_chunk ... ok
test key omit, chunk 2, chunk range 19975..30005, omit index 30003, kv: ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test key omit, chunk 2, chunk range 19975..30005, omit index 30004, kv: ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152]),chunk_last_kvs [([152, 231, 177, 166, 225, 33, 236, 120], [152, 231, 177, 166, 225, 33, 236, 120, 152]), ([152, 232, 125, 246, 67, 101, 147, 234], [152, 232, 125, 246, 67, 101, 147, 234, 152, 232, 125]), ([152, 236, 140, 158, 157, 7, 46, 175], [152, 236, 140, 158, 157, 7, 46, 175, 152])]
test chunk 3, chunk range 30005..40003, chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 30005, kv: ([152, 238, 9, 211, 162, 21, 156, 138], [152, 238, 9, 211, 162, 21]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 30006, kv: ([152, 238, 56, 161, 143, 17, 205, 118], [152, 238, 56, 161, 143, 17]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 30007, kv: ([152, 238, 72, 65, 175, 66, 106, 131], [152, 238, 72, 65, 175, 66]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 30008, kv: ([152, 238, 202, 146, 205, 200, 190, 25], [152, 238, 202, 146, 205, 200, 190, 25, 152, 238, 202]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 30009, kv: ([152, 242, 41, 151, 11, 249, 36, 65], [152, 242, 41, 151, 11, 249, 36]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 35004, kv: ([178, 243, 135, 54, 252, 226, 103, 205], [178, 243, 135, 54, 252, 226, 103]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 39998, kv: ([204, 97, 113, 220, 146, 237, 144, 131], [204, 97, 113, 220, 146, 237, 144, 131, 204, 97, 113]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 39999, kv: ([204, 97, 114, 18, 136, 12, 35, 98], [204, 97, 114, 18, 136, 12, 35, 98, 204, 97, 114]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 40000, kv: ([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 40001, kv: ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test key omit, chunk 3, chunk range 30005..40003, omit index 40002, kv: ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205]),chunk_last_kvs [([204, 98, 231, 254, 21, 171, 177, 131], [204, 98, 231, 254, 21, 171, 177, 131, 204, 98, 231, 254]), ([204, 99, 254, 29, 243, 22, 98, 36], [204, 99, 254, 29, 243, 22, 98, 36, 204, 99, 254, 29, 243]), ([204, 101, 205, 66, 52, 161, 151, 149], [204, 101, 205, 66, 52, 161, 151, 149, 204, 101, 205])]
test chunk 4, chunk range 40003..50012, chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
Committing initial 20 epochs.
test key omit, chunk 4, chunk range 40003..50012, omit index 40003, kv: ([204, 101, 207, 190, 183, 60, 122, 206], [204, 101, 207, 190, 183, 60, 122]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 40004, kv: ([204, 106, 14, 205, 122, 207, 208, 209], [204, 106, 14, 205, 122, 207, 208, 209, 204]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 40005, kv: ([204, 107, 89, 168, 74, 103, 8, 44], [204, 107, 89, 168, 74, 103, 8, 44, 204, 107, 89, 168, 74, 103, 8]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 40006, kv: ([204, 107, 105, 129, 8, 224, 103, 179], [204, 107, 105, 129, 8, 224, 103, 179, 204, 107, 105]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 40007, kv: ([204, 108, 47, 98, 15, 217, 235, 232], [204, 108, 47, 98, 15, 217, 235]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 45007, kv: ([230, 73, 55, 15, 134, 136, 246, 72], [230, 73, 55, 15, 134, 136, 246]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 50007, kv: ([255, 245, 72, 37, 33, 72, 240, 17], [255, 245, 72, 37, 33, 72, 240, 17, 255, 245, 72, 37, 33, 72, 240]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 50008, kv: ([255, 248, 47, 124, 116, 117, 164, 241], [255, 248, 47, 124, 116, 117, 164, 241, 255, 248, 47, 124, 116]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 50009, kv: ([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test key omit, chunk 4, chunk range 40003..50012, omit index 50010, kv: ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test tests::proofs::test_valid_node_merkle_proof_for_nonexistent_key ... ok
test key omit, chunk 4, chunk range 40003..50012, omit index 50011, kv: ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]),chunk_last_kvs [([255, 249, 58, 159, 76, 149, 33, 179], [255, 249, 58, 159, 76, 149, 33]), ([255, 252, 118, 117, 77, 134, 230, 18], [255, 252, 118, 117, 77, 134, 230, 18, 255]), ([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21])]
test chunk 5, chunk range 50012..50014, chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test key omit, chunk 5, chunk range 50012..50014, omit index 50012, kv: ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]),chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test key omit, chunk 5, chunk range 50012..50014, omit index 50013, kv: ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179]),chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test key omit, chunk 5, chunk range 50012..50014, omit index 50013, kv: ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179]),chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test key omit, chunk 5, chunk range 50012..50014, omit index 50012, kv: ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]),chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test key omit, chunk 5, chunk range 50012..50014, omit index 50013, kv: ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179]),chunk_last_kvs [([255, 253, 235, 173, 135, 200, 21, 228], [255, 253, 235, 173, 135, 200, 21]), ([255, 255, 160, 171, 11, 56, 252, 188], [255, 255, 160, 171, 11, 56, 252, 188, 255, 255, 160, 171, 11, 56, 252]), ([255, 255, 178, 9, 179, 220, 73, 107], [255, 255, 178, 9, 179, 220, 73, 107, 255, 255, 178, 9, 179])]
test tests::snapshot::verifier::test_slice_verifier ... ok
Setting state_1 with 250487 keys.
test tests::proofs::test_invalid_node_merkle_proof ... ok
Setting state_2 with 250487 keys.
test tests::state::test_set_order ... ok
Benchmarking last 20 epochs with 400000 transactions
test tests::state::test_snapshot_random_read_performance ... test tests::state::test_snapshot_random_read_performance has been running for over 60 seconds
Benchmark finished, TPS = 15108.022359873092, load = 52.90%, rlp_and_update = 1.90%, write = 14.73%, commit = 30.47%
test tests::state::test_snapshot_random_read_performance ... ok

failures:

failures:
    tests::proofs::test_invalid_state_proof
    tests::proofs::test_valid_node_merkle_proof_for_existing_key
    tests::proofs::test_valid_state_proof_for_existing_key
    tests::proofs::test_valid_state_proof_for_nonexistent_key

test result: FAILED. 51 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '-p cfx-storage --lib'
Thegaram commented 4 years ago

I've seen this Sqlite "unable to open database file" errors. Can you please check and remove and temporary files created by the tests and run again? Otherwise, I think this might be caused some permission issues.

Thegaram commented 3 years ago

I managed to reproduce this on my Mac:

---- tests::proofs::test_valid_node_merkle_proof_for_nonexistent_key stdout ----
new StorageManager within storage_dir ./conflux_unit_test_data_dir12966901986823100963/storage_db
thread 'tests::proofs::test_valid_node_merkle_proof_for_nonexistent_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::proofs::test_valid_state_proof_for_existing_key stdout ----
new StorageManager within storage_dir ./conflux_unit_test_data_dir2532612625848042167/storage_db
thread 'tests::proofs::test_valid_state_proof_for_existing_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(SqliteError(Error { code: Some(14), message: Some("unable to open database file") }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10

---- tests::proofs::test_valid_state_proof_for_nonexistent_key stdout ----
new StorageManager within storage_dir ./conflux_unit_test_data_dir3709812303608243389/storage_db
thread 'tests::proofs::test_valid_state_proof_for_nonexistent_key' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', core/storage/src/tests/proofs.rs:131:10

failures:
    tests::proofs::test_valid_node_merkle_proof_for_nonexistent_key
    tests::proofs::test_valid_state_proof_for_existing_key
    tests::proofs::test_valid_state_proof_for_nonexistent_key
Thegaram commented 3 years ago

On Mac you need to increase the number of open file descriptors allowed, e.g. ulimit -n 1000. You can refer to this for more details.