Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] #2323: Enhance kura init error message #2329

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

ilchu
Copy link
Contributor

@ilchu ilchu commented Jun 7, 2022

Signed-off-by: Ilia Churin churin.ilya@gmail.com

Description of the Change

A slightly altered error message for cases when kura initialization goes wrong.

Issue

Resolves #2323.

Benefits

Suggests a makeshift solution to Iroha users.

Possible Drawbacks

The message could actually be somewhat misleading. If there is a network being run by docker compose and only one of the peers has faulty data, simply restarting it wouldn't help as it will keep crashing over and over. Maybe I'm missing out on some technique, but so far the only viable solution for me was rebuilding the network, so I made sure the message reflects that.

@github-actions github-actions bot added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Jun 7, 2022
core/src/kura.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 7, 2022

Codecov Report

Merging #2329 (9042972) into iroha2-dev (2ba9c8f) will increase coverage by 0.72%.
The diff coverage is 64.11%.

@@              Coverage Diff               @@
##           iroha2-dev    #2329      +/-   ##
==============================================
+ Coverage       64.67%   65.39%   +0.72%     
==============================================
  Files             131      133       +2     
  Lines           24664    24803     +139     
==============================================
+ Hits            15952    16221     +269     
+ Misses           8712     8582     -130     
Impacted Files Coverage Δ
config/src/lib.rs 14.28% <0.00%> (ø)
core/src/smartcontracts/isi/account.rs 12.30% <0.00%> (ø)
core/src/smartcontracts/isi/domain.rs 39.82% <0.00%> (+0.69%) ⬆️
core/src/smartcontracts/isi/triggers.rs 0.00% <ø> (ø)
core/src/smartcontracts/isi/world.rs 9.52% <0.00%> (+0.43%) ⬆️
data_model/src/asset.rs 51.46% <0.00%> (-0.42%) ⬇️
data_model/src/block_value.rs 57.14% <ø> (+17.14%) ⬆️
data_model/src/domain.rs 77.77% <0.00%> (ø)
data_model/src/events/data/events.rs 39.58% <0.00%> (-0.85%) ⬇️
data_model/src/events/data/filters.rs 24.23% <ø> (ø)
... and 52 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc6ecbd...9042972. Read the comment docs.

Signed-off-by: Ilia Churin <churin.ilya@gmail.com>
@ilchu ilchu merged commit 43a1b31 into hyperledger-iroha:iroha2-dev Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants