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

Retry connection on height mismatch #2474

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

roman-khimov
Copy link
Member

No description provided.

Block count is literally a block counter, while block height is the height
written in the block. For block zero the height is zero while we have one block
in the chain and therefore the count is one. Persistent store operates with
heights, therefore comparison should be adjusted by one.

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov added the neofs-ir Inner Ring node application issues label Aug 6, 2023
@roman-khimov roman-khimov added this to the v0.38.0 milestone Aug 6, 2023
@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #2474 (74d070e) into master (cd628f7) will decrease coverage by 0.01%.
Report is 5 commits behind head on master.
The diff coverage is 16.66%.

❗ Current head 74d070e differs from pull request most recent head e3de08e. Consider uploading reports for the commit e3de08e to get more accurate results

@@            Coverage Diff             @@
##           master    #2474      +/-   ##
==========================================
- Coverage   29.48%   29.47%   -0.01%     
==========================================
  Files         399      399              
  Lines       30430    30433       +3     
==========================================
- Hits         8971     8970       -1     
- Misses      20715    20719       +4     
  Partials      744      744              
Files Changed Coverage Δ
cmd/neofs-node/container.go 9.60% <0.00%> (ø)
pkg/innerring/innerring.go 0.00% <0.00%> (ø)
...es/container/announcement/load/controller/calls.go 65.30% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

CHANGELOG.md Outdated Show resolved Hide resolved
pkg/morph/subscriber/subscriber.go Show resolved Hide resolved
@roman-khimov roman-khimov force-pushed the retry-conn-on-height-mismatch branch 2 times, most recently from e2bfeae to b5f085b Compare August 8, 2023 09:33
We can have a set of RPC nodes configured and we will switch them in runtime,
but if the first node is outdated then the IR node will _always_ fail to
start until RPC node catches up. We can have a better behaviour with node
switching to other RPCs in this phase.

Can't be done this easily for the sidechain since in most cases we have an
internal node and it needs to go through the chain completely.

Refs. #2426.

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov merged commit 91f716b into master Aug 8, 2023
7 of 8 checks passed
@roman-khimov roman-khimov deleted the retry-conn-on-height-mismatch branch August 8, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
neofs-ir Inner Ring node application issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants