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

INDY-1945: Minor catchup improvements #1130

Merged
merged 4 commits into from
Mar 18, 2019

Conversation

skhoroshavin
Copy link
Member

No description provided.

Sergey Khoroshavin added 3 commits March 15, 2019 17:22
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@@ -141,8 +141,8 @@ def test_3pc_while_catchup_with_chkpoints_only(tdir, tconf,
)

# check that catch-up was started twice
assert lagging_node.spylog.count(Node.allLedgersCaughtUp) == initial_all_ledgers_caught_up + 2
assert lagging_node.spylog.count(Node.start_catchup) == 2
assert lagging_node.spylog.count(Node.allLedgersCaughtUp) == initial_all_ledgers_caught_up + 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it 1 again? I think this is because we delay LEDGER_STATUSs and CATCHUP_REPLYs for the first ledger, which is Pool now, so we get Checkpoints before we actually start catching up Audit ledger. So, we catch-up all the txns in Audit (and hence Domain), and this is not what we want to test.
Please make sure that we delay catchup msgs for Audit or Domain ledgers, so that we catchup less.

Also please make sure that other tests from this folder are OK.

@skhoroshavin skhoroshavin changed the title [WIP] INDY-1945: Minor catchup improvements INDY-1945: Minor catchup improvements Mar 18, 2019
@ashcherbakov ashcherbakov merged commit d7e85b5 into hyperledger:master Mar 18, 2019
@skhoroshavin skhoroshavin deleted the indy-1945-11 branch March 18, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants