Fix OrdererEndpoints in test-network's bft sample #1085
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch fixes the description of orderer2-4 in OrdererEndpoints in test-network's bft-config/configtx.yaml.
Details
I noticed that the current configuration in the configtx.yaml file lists all endpoints under "orderer.example.com" with different port numbers. I wonder if the orderer names should be distinct, such as 'orderer2.example.com', 'orderer3.example.com', and 'orderer4.example.com', each with their respective port numbers.
Check for problems and their fixes
I commented out the first entry of orderer.example.com:7050 temporarily to see if peers have trouble pulling blocks from the other endpoints as shown in the following log.
After that, I tested by fixing the hostname of orderer2-4 and validated that fix solves the problem as shown in the following log.
$ docker logs peer0.org1.example.com ... 2023-08-29 05:18:35.155 UTC 0031 INFO [peer.blocksprovider] Start -> BlockReceiver starting channel=mychannel orderer-address=orderer2.example.com:7052