Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add Integration Catchup Test #6989

Merged
merged 22 commits into from
Mar 28, 2019
Merged

Conversation

brianjohnson5972
Copy link
Contributor

Change Description

#6727
Added an integration test to expose a problem found in net_plugin where blocks were received out of order and the catching up node no longer received new blocks.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

txnGenNodes.append(cluster.getNode(nodeNum))

txnGenNodes[0].txnGenCreateTestAccounts(cluster.eosioAccount.name, cluster.eosioAccount.activePrivateKey)
time.sleep(20)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we verify they exist instead of just hoping they are there in 20 seconds?

lastCatchupHeadNum=head(catchupNode)

catchupNode.interruptAndVerifyExitStatus(60)
retryCountMax*=3
Copy link
Contributor

Choose a reason for hiding this comment

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

why? multiply by 3?

time.sleep(5)
retryCount+=1
# give it some more time if the head is still moving forward
if retryCount>=100 or head(catchupNode)<=lastCatchupHeadNum:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this 100 suppose to be retryCountMax?

lastHeadNum=head(node0)

catchupNode=cluster.getNodes()[-1]
time.sleep(9)
Copy link
Contributor

Choose a reason for hiding this comment

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

In general the fewer the sleeps the better. I want to avoid depending on sleep time to avoid this test failing on slower/faster machines. Also we are in the process of trying to speed up tests.

@heifner
Copy link
Contributor

heifner commented Mar 23, 2019

Had a conversation with @brianjohnson5972.

  • Going to modify test to, for all
    -- start
    -- verify caught up and lib advancing
    -- kill
    -- restart
    -- verify caught up again

  • This will test both modes of net_plugin sync and catchup.

@brianjohnson5972
Copy link
Contributor Author

Talked with @heifner and need to add checking for transactions actually being generated.

@heifner heifner merged commit 0d980cb into EOSIO:develop Mar 28, 2019
@brianjohnson5972
Copy link
Contributor Author

Implementation for #6727

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants