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

Perform manual testing on evaluate when non-gateway peers go down cleanly #29

Open
davidkel opened this issue Oct 26, 2021 · 4 comments

Comments

@davidkel
Copy link
Owner

davidkel commented Oct 26, 2021

This is going to be more tricky to test, because if the chaos engine runs in evaluate mode only and the scenarios always leave the gateway peer up, then the gateway peer is always going to be chosen for the evaluate, the only slight change is that it may try the other peer in the org first if the 2 have the same block heights, but no guarantee (Would need to confirm with Andy but I suspect that the gateway peer will always be the first peer to try if the block heights are identical to cut down on any unnecessary network traffic)

@davidkel davidkel changed the title Perform manual testing on evaluate when peers go down Perform manual testing on evaluate when non-gateway peers go down Nov 1, 2021
@davidkel
Copy link
Owner Author

davidkel commented Nov 1, 2021

We may be able to test this by not installing chaincode on the gateway peer, but we can use unsetting of the gossip external endpoint as this doesn't work with the gateway

@davidkel
Copy link
Owner Author

davidkel commented Nov 2, 2021

We may need to test 3 peers in the same org ?

@davidkel davidkel changed the title Perform manual testing on evaluate when non-gateway peers go down Perform manual testing on evaluate when non-gateway peers go down cleanly Nov 2, 2021
@davidkel
Copy link
Owner Author

davidkel commented Nov 3, 2021

tested by

  • installing chaincode on peer0 of each org
  • gateway peer was peer1.org1
  • stopped peer peer1.org2, peer1.org3 so that chaos engine won't include these when attempting any stop or restart

Issues raised

@davidkel
Copy link
Owner Author

davidkel commented Nov 8, 2021

Scenarios used

StopRestartOrg2
StopRestartOrg3
StopRestartOrg12Peer
StopRestartOrg13Peer
StopRestartOrg23Peer
StopRestartOrg1Peer
StopRestartOrg2Peer
StopRestartOrg3Peer

Can't stop all peers except gateway because gateway cannot endorse so this will fail, and we can't stop a peer in all orgs because org2 and org3 only have 1 peer and we can't stop the non gateway peer in org 1

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

No branches or pull requests

1 participant