Skip to content

added to OSN new handler for update config of channel - #5244

Merged
C0rWin merged 1 commit into
hyperledger:mainfrom
pfi79:add-osn-update
Aug 17, 2025
Merged

added to OSN new handler for update config of channel#5244
C0rWin merged 1 commit into
hyperledger:mainfrom
pfi79:add-osn-update

Conversation

@pfi79

@pfi79 pfi79 commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

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

pfi79 commented Jul 12, 2025

Copy link
Copy Markdown
Contributor Author

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
Comment thread integration/raft/config_test.go Outdated
}

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread integration/raft/config_test.go Outdated
By("Rotating certificates of other orderer nodes")
for i := range certificateRotations {
if i != leaderIndex {
time.Sleep(5 * time.Second)

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread integration/raft/config_test.go Outdated
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread integration/raft/config_test.go Outdated
assertBlockReception(expectedBlockNumPerChannel[i*2], orderers, peer, network)

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
@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
Copy Markdown
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
Copy Markdown
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