Skip to content

Conversation

pfi79
Copy link
Contributor

@pfi79 pfi79 commented Jul 7, 2025

The peer channel update internally only accesses orderers.
I think it's better to add this command to OSN.

@pfi79 pfi79 requested review from a team as code owners July 7, 2025 21:50
@pfi79
Copy link
Contributor Author

pfi79 commented Jul 12, 2025

pr is very heavy and difficult, I will break it down into parts to make it easier and clearer.

@pfi79 pfi79 force-pushed the add-osn-update branch 3 times, most recently from e15c297 to 53cd268 Compare July 21, 2025 13:49
@pfi79 pfi79 force-pushed the add-osn-update branch 2 times, most recently from e4c5e3a to 4c21c9b Compare July 27, 2025 18:50
}

By(fmt.Sprintf("Rotating cert on leader %d", leader))
time.Sleep(5 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use Eventual with condition why are you waiting here instead of sleep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

By("Rotating certificates of other orderer nodes")
for i := range certificateRotations {
if i != leaderIndex {
time.Sleep(5 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use Eventual

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

port := network.OrdererPort(o, nwo.ClusterPort)

By(fmt.Sprintf("Adding the future certificate of orderer node %d", i))
time.Sleep(5 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

assertBlockReception(expectedBlockNumPerChannel[i*2], orderers, peer, network)

By("Removing the previous certificate of the old orderer")
time.Sleep(5 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, please use Eventual

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@pfi79 pfi79 requested a review from C0rWin August 11, 2025 11:53
Comment on lines +232 to +236
go func() {
defer GinkgoRecover()
Update(n, orderer, channel, updateEnvelope)
close(ready)
}()
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the Update execution freezes "forever", Eventually will terminate the test earlier with an error.

@C0rWin C0rWin merged commit 824eb5a into hyperledger:main Aug 17, 2025
25 of 26 checks passed
@pfi79 pfi79 deleted the add-osn-update branch August 17, 2025 11:18
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.

2 participants