github hyperledger/fabric v2.4.0

latest releases: v3.0.0, v2.5.10, v3.0.0-rc1...
2 years ago

v2.4.0 Release Notes - November 29, 2021

New features

Fabric Gateway

Fabric Gateway is a new service running on peer nodes that manages transaction submission and processing for client applications, with the following benefits:

  • Simplifies client applications and SDKs - Your client application can simply delegate transaction submission to a trusted peer. There is no need for your application to open connections to peer nodes and ordering service nodes from other organizations.
  • Fabric Gateway manages collection of transaction endorsements from other organizations and submission to ordering service on behalf of client applications.
  • Fabric Gateway has intelligence to determine what endorsements are required for a given transaction, even if your solution utilizes a combination of chaincode-level endorsement policies, private data collection endorsement policies, and state-based endorsement policies.

New lightweight Gateway SDKs (v1.0.0) are available for Node, Java, and Go. The SDKs support flexible application patterns:

  • You can utilize the high level programming model similar to prior SDK versions, allowing your application to simply call a single SubmitTransaction() function.
  • More advanced applications can leverage the gateway's individual Endorse, Submit, and CommitStatus services for transaction submission, and the Evaluate service for queries.
  • You can delegate transaction endorsement entirely to the gateway, or if needed, specify the endorsing organizations and the gateway will utilize a peer from each organization.

For more information, see the Fabric Gateway documentation topic.

Unjoin a channel from a peer

The new command peer node unjoin enables an administrator to remove (unjoin) a channel from a peer.
The peer must be stopped when the command is executed so that channel artifacts can be cleaned up.
The channel's blockchain, state database, and associated entries will be removed from the peer.
When the peer is restarted it will no longer receive blocks for the channel.

For more information, see the peer node command reference.

Calculate package ID of a packaged chaincode

You can calculate the package ID from a packaged chaincode without installing the chaincode on peers using the new peer lifecycle chaincode calculatepackageid command.
This command will be useful, for example, in the following cases:

  • When multiple chaincode packages with the same label name are installed, it is possible to identify which ID corresponds to which package later.
  • To check whether a particular chaincode package is installed or not without installing that package.

For more information, see the peer lifecycle command reference.

Improvements

peer and orderer - Implement legacy name constraints verification for Go 1.15 and above

These changes reproduce the Go 1.14 name constraint verification in the MSP.
Without these changes, certificate chains that would fail verification in Go 1.14 would
successfully validate in Go 1.15 and above due to the change mentioned in the Go 1.15 release notes.
Specifically, if a signing certificate contains a name constraint, the leaf certificate
does not include SAN extensions, and the leaf's common name looks like a host name,
then the additional verification is performed to ensure deterministic behavior relative
to prior Fabric releases.

peer and orderer - Default log record format improvements

Expanded the width of the log record sequence number to a minimum of four characters,
moved the log sequence number and log level to the left,
and added bold formatting to the function name.
These changes keep the fixed-width columns together at the left
and add a visual break between the logging module name and log message text.

peer - New configuration option to disable gossip block forwarding

If all peers in an organization explicitly set "peer.deliveryclient.blockGossipEnabled" to false,
no peer in the organization gossips blocks to any other peer in that organization.
Use this setting when all peers pull blocks from ordering service. For more
information see deprecation announcement below: FAB-15317: Block dissemination via gossip is deprecated.

orderer - Return transaction forwarding result back to the client synchronously

With this improvement a Raft follower waits for the transaction to be forwarded to the Raft leader,
and returns the result (success or failure) back to the client accordingly.
Prior to this improvement, the Raft follower returned success after enqueueing it into the message queue,
which might have resulted in the transaction being dropped but a success being returned to the client.
Application clients should still monitor transaction commit events, since the Raft leader is not guaranteed
to deliver the transaction into a block in exception scenarios, but this improvement avoids
transactions from being dropped when there are connection issues between a Raft follower and Raft leader.

peer - Ability to override core.yaml chaincode.externalBuilders via environment variable

Since chaincode.externalBuilders is an array, it previously was not possible to set via environment variable override.
It is now possible to override chaincode.externalBuilders using an environment variable
using the format CORE_CHAINCODE_EXTERNALBUILDERS=[{name: x, path: dir1}, {name: y, path: dir2}].

peer and orderer - Make gRPC maximum message size configurable

This improvement makes gRPC maximum message size configurable in peer and orderer.
Previously the maximum message size was hardcoded to 100 megabytes.
Since all nodes should be consistent it is recommended to keep
the default value of 100 megabytes for MaxRecvMsgSize & MaxSendMsgSize.
The value can be configured if needed however.
Configure in peer core.yaml with peer.maxRecvMsgSize and peer.maxSendMsgSize.
Configure in orderer orderer.yaml with General.MaxRecvMsgSize and General.MaxSendMsgSize.

Fixes

All fixes as of v2.3.3 are included in v2.4.0. Additionally, the following fix is made in v2.4.0.

orderer - Fix bug when an orderer crashes at channel creation

This fix handles a scenario where an ordering service node crashes during channel creation.
Previously the ordering service node would attempt to re-create the channel upon next startup,
resulting in a panic with the following error:
"Error creating chain support: error creating consenter for channel: failed to restore persisted raft data: failed to create or read WAL: failed to open WAL: fileutil: file already locked".

Dependencies

Fabric v2.4.0 has been tested with the following dependencies:

  • Go 1.16.7
  • CouchDB v3.1.1

Fabric docker images on dockerhub utilize Alpine 3.14.

Deprecations (new)

Ordering service system channel is deprecated

v2.3 introduced the ability to manage an ordering service without a system channel.
Managing an ordering service without a system channel has privacy, scalability,
and operational benefits. The use of a system channel is deprecated and may be removed in a future release.
For information about removal of the system channel, see the Create a channel without system channel documentation.

Deprecations (existing)

FAB-15754: The 'Solo' consensus type is deprecated.

The 'Solo' consensus type has always been marked non-production and should be in
use only in test environments, however for compatibility it is still available,
but may be removed entirely in a future release.

FAB-16408: The 'Kafka' consensus type is deprecated.

The 'Raft' consensus type was introduced in v1.4.1 and has become the preferred
production consensus type. There is a documented and tested migration path from
Kafka to Raft, and existing users should migrate to the newer Raft consensus type.
For compatibility with existing deployments, Kafka is still supported,
but may be removed entirely in a future release.
Additionally, the fabric-kafka and fabric-zookeeper docker images are no longer updated, maintained, or published.

Fabric CouchDB image is deprecated

v2.2.0 added support for CouchDB 3.1.0 as the recommended and tested version of CouchDB.
If prior versions are utilized, a Warning will appear in peer log.
Note that CouchDB 3.1.0 requires that an admin username and password be set,
while this was optional in CouchDB v2.x. See the
Fabric CouchDB documentation
for configuration details.
Also note that CouchDB 3.1.0 default max_document_size is reduced to 8MB. Set a higher value if needed in your environment.
Finally, the fabric-couchdb docker image will not be updated to v3.1.0 and will no longer be updated, maintained, or published.
Users can utilize the official CouchDB docker image maintained by the Apache CouchDB project instead.

FAB-7559: Support for specifying orderer endpoints at the global level in channel configuration is deprecated.

Utilize the new 'OrdererEndpoints' stanza within the channel configuration of an organization instead.
Configuring orderer endpoints at the organization level accommodates
scenarios where orderers are run by different organizations. Using
this configuration ensures that only the TLS CA certificates of that organization
are used for orderer communications, in contrast to the global channel level endpoints which
would cause an aggregation of all orderer TLS CA certificates across
all orderer organizations to be used for orderer communications.

FAB-17428: Support for configtxgen flag --outputAnchorPeersUpdate is deprecated.

The --outputAnchorPeersUpdate mechanism for updating anchor peers has always had
limitations (for instance, it only works the first time anchor peers are updated).
Instead, anchor peer updates should be performed through the normal config update flow.

FAB-15406: The fabric-tools docker image is deprecated

The fabric-tools docker image will not be published in future Fabric releases.
Instead of using the fabric-tools docker image, users should utilize the
published Fabric binaries. The Fabric binaries can be used to make client calls
to Fabric runtime components, regardless of where the Fabric components are running.

FAB-15317: Block dissemination via gossip is deprecated

Block dissemination via gossip is deprecated and may be removed in a future release.
Fabric peers can be configured to receive blocks directly from an ordering service
node and not gossip blocks by using the following configuration:

peer.gossip.orgLeader: true
peer.gossip.useLeaderElection: false
peer.gossip.state.enabled: false
peer.deliveryclient.blockGossipEnabled: false

FAB-15061: Legacy chaincode lifecycle is deprecated

The legacy chaincode lifecycle from v1.x is deprecated and will be removed
in a future release. To prepare for the eventual removal, utilize the v2.x
chaincode lifecycle instead, by enabling V2_0 application capability on all
channels, and redeploying all chaincodes using the v2.x lifecycle. The new
chaincode lifecycle provides a more flexible and robust governance model
for chaincodes. For more details see the
documentation for enabling the new lifecycle.

Changes:

  • 41b6586 v2.4.0 release commit (#3078)
  • 4f4e096 Update v2.4.0 release notes
  • f15b4ee Add command reference doc for ledgerutil
  • 45707ac Add read version to the example in read-write set
  • b0de139 Add logging for identity, policy, and signature troubleshooting
  • 1266978 Clarify v2.x upgrade docs (#3083)
  • 6a7cdd0 Refine Gateway gRPC error status codes (#3075)
  • 40fea67 goimports updates to prepare for Go 1.17 (#3070)
  • c14239c Add gateway ref to private data doc topic
  • a6a9fde EndorsementTimeout should apply to each endorser
See More
  • bd1aaae Reference current application APIs in peer event service docs
  • 91951d0 Log the transactionID in all log messages
  • 2abb074 Remove redundant SDK documentation page
  • a1c13d8 Updates to endorser and gateway logging
  • 34dcb8d Update protobuf definitions
  • 5c2e358 Enhance gateway error logic
  • 5014709 docs: fixing some typos
  • dee44d9 Don't use EndorseResponse.Result field (#3051)
  • c463b32 Fix CI script syntax
  • 44faa13 Enable unaware threshold signature endorsement
  • 8a4c7f3 Update Contract and Application API docs for Fabric Gateway (#3048)
  • 91d7b7c Updates to Gateway doc topic (#3047)
  • 6a415ee collection singular
  • e3abd66 use member of a collection
  • da935d7 Gateway overview edited
  • 9c5e1df Clarify ProcessProposal error handling (#3044)
  • f089b24 Reword evaluate() error message
  • 688d4d2 Add extra info to error message
  • 6926cc1 no gateway via cli - tutorials (#3037)
  • cdc342e Add gateway architecture page to docs
  • 534b1c1 Use correct timeout option (#3032)
  • d67d421 Show what do not match (#3012)
  • 5113aa9 Better gRPC error on context error from CommitStatus service
  • 62fb4c0 Update transaction flow doc for peer gateway
  • 40f90c1 Fix typo in comment (#3016)
  • 45f4dcb Add chaincode err message to Evaluate err message
  • 42c99e0 Add documents for new options of calculatepackageid
  • b1c9d43 Add -O json option to calculatepackageid
  • ee18f9d Return package ID without any prefix by default for calculatepackageid
  • 843ff14 Update Sphinx to v1.8.2
  • 70ace58 Add integration tests for calculatepackageid command
  • abdb330 Add explanation of stringArray
  • 89da86e Reword duplicate error message
  • d8ee1b4 Don’t close connection if already closing
  • 31bc120 Retry logic for evaluate
  • 7ebb704 Add documents for calculatepackageid command
  • 3e433d4 Add calculatepackageid command
  • 9ef778a Move to better IsAbs Implementation (#3000)
  • 0f08904 Gateway endorsement retry logic
  • b4c2731 fix windows SyncDir issue
  • c90d50a Bump babel from 2.3.4 to 2.9.1 in /docs
  • 0f904bb Adjusted from review comments
  • 3914549 install-fabric.sh script - updated version of bootstrap.
  • 3574d8b Check the package name on core/ledger/kvledger UT (#2987)
  • 2ede756 Extra info in log message (#2982)
  • 755ba79 set TestBlockPullerBadBlocks pullblock wait time (#2975)
  • b3cf25e Improve health checker docs
  • 6897c80 Update developer environment (#2977)
  • 21e4914 Rename EndpointError to ErrorDetail (#2974)
  • b52f776 Add clarifications to dev env versions in doc
  • 7d51df1 docs: Use html_style property instead of add_stylesheet()
  • 6656f72 Evaluate() error response for node chaincode
  • 0625b10 Rename persistent_msgs to persistance to avoid protobuf conflict
  • c8a6c43 Sort chaincode interests in tests (#2966)
  • 7124587 Add unittest of writting multiple blocks for BlockWriter
  • d0b32ed Add unittest of writting config block synchronously for BlockWriter
  • 295853b Write config blocks synchronously in Orderer
  • 9636332 Refactor idemix implementation (#2955)
  • 4b9ef57 Fix the project status to 'Graduated' instead of 'Active'
  • de9a64d docs: Add the path of softhsm2.conf for macOS
  • e66c951 Improve error messages when no endorsers found (#2963)
  • c62034e Add Information about AWS HSM
  • 0d13aa6 Update links for Jira to GitHub issue transition in README
  • cf341ee Improve an error message in InstallChaincode
  • 3a93662 Randomize selection of orderer nodes with retry (#2951)
  • 210d20f Improve wording of log message
  • 83cabf2 correct logger labels after cloning block puller.
  • f97177c Cache channel orderers in registry
  • f9027a4 docs: Don't apply the syntax highlighting of python
  • 70ff46a Unit test flake when rpc server stream not closed (#2935)
  • 0545ac8 Fixed Found Typos
  • aa8d06b Do not create new chain of type etcdraft.Chain if such exists in map of chains. This can happen when in Raft protocol a channel was created, but not marked as done in WAL logs, so at orderer startup it will try to rerun creation tx and panic because the channel already exists.
  • 8999ce7 Apply the style only the key in readwrite.rst (#2933)
  • 1243e99 Fix the result message in test_network.md [ #394 ]
  • 8767ced Fix broken links for international workgroups (#2920)
  • 85a67f8 Implement DisregardNamespacePolicy for gateway
  • 3594a3b Update docs for Jira to GitHub issue transition
  • a395f3b updated chaincode4ade.rst("Writing your first chaincode") showing good practise on how to achieve determinism in json
  • b735309 Updates in main for v2.3.3
  • e55a388 Minor code clean-up in Gateway ChaincodeEvents handling (#2899)
  • beb8f5d Implement chaincode event replay for Fabric Gateway (#2896)
  • dd539d3 Refactor ChaincodeEvents to use ledger iterator (#2891)
  • b1d7538 Private Data Comparison [ #2818 ]
  • cbe7d44 Nominate Andrew Coleman as Fabric maintainer
  • b563b08 Fixed a typo in private_data_tutorial
  • 4875635 Update alpine base image to 3.14 (#2881)
  • 7cb82ee Clean up Go modules (main) (#2878)
  • aa76c70 [Document] typo fix
  • 6ec8d72 Stop spamming for wait channel acquirement in orderer integration test
  • f62e877 Clarify bootstrap.sh message when fabric-samples tag not found
  • 868166d Gateway integration tests - adv. endorsement
  • 9788c9b Early Differences Flag
  • 394fb86 Prepare for next release v2.4.0
  • b0e0c4f fix typo
  • 1fbdc18 Update Go to v1.16.7
  • 38348fb [FAB-11334] - Adds a functional / integration test for peer unjoin channel
  • bc1898e Gateway Evaluate() with transient data
  • 540fff8 FAB18529 added nil check in channel header parsing
  • 36884f0 Add documentation for AbsoluteMaxBytes
  • 98973a8 Options for GRPC message size configurable
  • b64d362 Update bootstrap.sh download script for Fabric CA v1.5.1
  • a330b66 Add release notes for v2.4.0-beta release
  • dac896a Add slash command for invalid issue
  • 474badd Better error messages from Gateway
  • 497a177 Fix FAB-18528: remove panic in ifConfig func (#2828)
  • c41ffff Fix small doc errors (#2816)
  • 99d2e32 Output File Exists Error
  • ea48474 [FAB-11334] Adds a 'peer node unjoin' CLI entrypoint to unjoin a peer from a channel (#2769)
  • 87ea070 Gateway enabled by default
  • 5331bbc FAB-18067 Discovery support Implicit Collections (#2784)
  • 240cf0e Merge and enhance coding guidelines across github and wiki
  • bb8bada [FAB-11334] Adds a function to purge a ledger's transient storage (#2769)
  • f662d98 FABGW-25 Endorse using generated ChaincodeInterest (#2773)
  • 71037f3 Update CHANGELOG.md
  • 95fb683 Hardening raft catchup IT
  • 463271e FAB 18365 evictionsuspicion failing when osn failed (#2780)
  • fe71474 Additional documentation for implicit private data collections
  • fa3960b FABGW-25 Test for system chaincode (#2771) [ #2767 ]
  • 52b12dc Update private data docs - remove SDK reference (#2770)
  • 26ec54a FABGW-25 Build ChaincodeInterest in TX simulator (#2767)
  • e5e623d [FAB-18527] Discovery supports DisregardNamespacePolicy hint from client (#2768)
  • 9a922fd [FAB-18527] Discovery supports state based endorsement queries (#2764)
  • 84c1270 [FABGW-25] Move chaincode interest to proposal response proto (#2763)
  • ffe7d36 [FAB-18521] Fixing flaky IT, send remove tx to another node (#2761) [ #2748 ]
  • 44ab2bf [FAB-18521] Replicate block metadata with block while OSN catching up (#2748)
  • 2c69863 Update test network tutorial for new profile
  • e4b66f9 Update boostrap.sh for test network
  • cf263b0 [FAB-11334] Scrubs partially constructed/deleted ledgers at peer init (#2754)
  • 62cd59c fixed peer documents
  • f7f77af fixed peer sample config
  • fda47c5 Renamed Ledger Binary To Ledgerutil (#2746)
  • 9736485 [FAB-11334] Adds a new 'peer node unjoin' feature (#2732)
  • 73c46a1 Updated enrollUser function in write_first_app Doc (#2713)
  • 965664f Update docs to clarify that an implicit collection can not have an index
  • 1249da2 [FAB-18509] Stop panic of collection index path is wrong (#2726)
  • 9c3d459 [FAB-18508] ledger utility always outputs txNum (#2724)
  • 4c4e58c File Location Flag (#2709)
  • b5e0d27 Added a possibility to override chaincode.externalBuilders via env variable (#2643)
  • 1f1c303 fix typo
  • b034225 [Doc-Update] + What is a commercial paper section
  • 1ee03b3 Add function to delete the ledger data for a channel (#2722)
  • 7151302 Fixed grammatical errors
  • 4e2f86e Fix a typo in CouchDB tutorial
  • 3a75b65 Use protoc-gen-go 1.3.3 for generating protos [ #2113 ]
  • 8ce450e Fix typo
  • 4422a19 Fix peerchaincode.md as well
  • 4e67cbe Add explanation of --ctor JSON string
  • cdd5a04 Compare Snapshots Utility
  • d80cd2a Clarify Verify behaviour in PKCS11 Impl
  • d55dc8e fix typo (#2695)
  • 8689771 Retire Will Lahti as maintainer (#2704)
  • 16259ed Mandate TLS 1.2 or higher in fabhttp package
  • b5a4fe9 Address PR comments in Gateway integration tests
  • 52c09b6 Clarify orderers seeing the transaction data
  • aa0b33f Retire Brett Logan as maintainer
  • 00910ba Handle missing endpoints from discovery
  • dc09b6e Cherry pick deploy CC fixes to main branch
  • fd218eb Clarify "identity expired" error messages (#2685)
  • d9e850d Fix spelling mistakes in the Github Contributions page
  • 3c7fa86 [FAB-18484] Return transaction forwarding result back to the client synchronously
  • 6fbca49 Update Artem Barger email address (#2671)
  • c81f265 Link fixes detailed in FAB-18494
  • 266497f Typo fix in peer deployment guide in main (#2660)
  • b4cd030 Link fixes in create channel tutorial (#2661)
  • dde41d9 Fix link in orderer deployment guide in main
  • b2f7292 Improve mvcc log warnings (#2649)
  • 04796e6 Use protobuf Getters to avoid nil reference (#2646)
  • 07808a0 Clarify doc for readset validations (#2647)
  • a8dbb68 FABGW-20 Implement TargetOrgs for Evaluate() (#2642)
  • 85ae90c Added RetrieveBlockByNumber into blockledger (#2635)
  • 1ad4422 Update secured_private_asset_transfer_tutorial.md
  • 1f89be9 FABGW-21: Realtime implementation of ChaincodeEvents service (#2604)
  • 34a4186 Fix minor code comment
  • 9170fea Return block number along with validation code (#2614)
  • e8e39e6 [FAB-18479] Log error if orderer can't forward SubmitRequest to Raft leader
  • f1fc499 fix duplicate entry in code snippet
  • 17dc11c Update Building docs to reflect UI changes
  • 0334d52 replace brew cask install --appdir='/Applications' docker with brew install --cask docker
  • 4e201af Optionally disable gossip block forwarding (#2606)
  • b4efe85 FABGW-20 Specify endorsing organizations (#2578)
  • 6f0bef1 Bump vmImage to Ubuntu-20.04
  • f8070ec Maintain order of transactions in the commit notification
  • cca66b6 Add chaincode events in the commit notification
  • 885e83d FABGW-18: Fix concurrency issue in commit notifier close (#2599)
  • 856c5a1 Update docs/source/upgrade_to_newest_version.md
  • d296963 Govendor added to documentation
  • 13bcf3f Improve Logging When Data File Does Not Exist (#2586)
  • dbf7eb1 Improve error message for invalid consenter cert (#2587)
  • 5e1e590 fix typo
  • b20d356 fix typo
  • 318510f modify some errors
  • c73f893 Revert "Simplify GitHub Action for AZP Triggering"
  • 1866ade FABGW-19: Secure CommitStatus service (#2570)
  • df8c049 fix typo
  • c03ccf8 Fix incorrect error message in Gateway submit
  • edd0f04 fix typo (#2569)
  • 2d50402 Add log warning for unathorized operations requests (#2567)
  • 627f963 Corrected function name in comments (#2568)
  • ef59964 Removed early mentioning of organization R3
  • f2c0f8e Updates in main branch for release v2.3.2
  • 3798624 fix typo (#2564)
  • b96fa09 Add debug for policy defaults (#2559)
  • 12f9b40 Remove redundant casts (#2558)
  • bd640c8 Remove redundant comma (#2557)
  • 7db78b3 Remove redundant type cast
  • ed1026c fix typo
  • 6790f42 fix typo
  • d5ab072 fix typo
  • 7c91224 Prepare for next release v2.4.0
  • deecdf9 Update email addresses (#2544)
  • a18f1c7 Fix Typo
  • 92ca023 Fixed grammar in docs for membership
  • 06509ad v2.4.0-alpha release notes
  • 4365412 remove redundant slice cast
  • 5d500ee Fixed Typo
  • d001dbc Add debug for gateway endorsement requests (#2538)
  • 4cfc722 Skip plugin tests when the noplugin tag is used (#2535)
  • ba7e923 fix: fix typo
  • dead74f Fixed Typo (#2533)
  • c7dc5d7 Improve snapshot dir error message
  • 3714ca3 Document ledger.snapshots.rootDir
  • b1f4329 Simplify GitHub Action for AZP Triggering
  • a8bfc98 Update deploy_chaincode.md
  • 345a08b Add Security Model topic to docs
  • aefa755 Fix link in international_languages.md
  • a559b2c Fix timeout in orderer connection from gateway
  • d88e09c peer: the 'noplugin' build tag disables plugins
  • f5de431 FABGW-9 Select endorsers with max block height
  • f4dba9d Fix old or incorrect contents in the doc build instruction
  • 576d186 Fix the fix for race condition in Finder unit test (#2504)
  • 1147977 Clarify private data doc for endorsement policies (#2502)
  • 1cc0ed0 Clarify private data doc related to private data responses. (#2501)
  • 7ac0b60 FABGW-8: Fix race condition in Finder unit test
  • 62e327e FABGW-8: Implement Gateway CommitStatus service
  • a1d06eb Wire function parameter to its actual usage (#2499)
  • 4793d86 build(deps): bump jinja2 from 2.10.1 to 2.11.3 in /docs
  • 54e27a6 Update "master" branch references to "main".
  • c0ca3c2 Regression test for prev commit "Bugfix: loadLastConfig wrongly returns nil instead of error"
  • a54199b FABGW-8: Hook commit notifier into Gateway service
  • 13092bb Bugfix: loadLastConfig wrongly returns nil instead of error

This list of changes was auto generated.

Don't miss a new fabric release

NewReleases is sending notifications on new releases.