From 344fda602252cf1de6b1231341b65465edde56ee Mon Sep 17 00:00:00 2001 From: David Enyeart Date: Wed, 30 Sep 2020 13:50:55 -0400 Subject: [PATCH] Release commit for v2.2.1 Final commit for v2.2.1 including doc, script, and release note updates. Signed-off-by: David Enyeart --- Makefile | 2 +- docs/source/install.rst | 6 +++--- docs/source/whatsnew.rst | 1 + release_notes/v2.2.1.md | 25 +++++++++++++------------ scripts/bootstrap.sh | 8 ++++---- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 6696fe2cb6c..6e9d32624eb 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ # - verify - runs unit tests for only the changed package tree ALPINE_VER ?= 3.12 -BASE_VERSION = 2.2.0 +BASE_VERSION = 2.2.1 # 3rd party image version # These versions are also set in the runners in ./integration/runners/ diff --git a/docs/source/install.rst b/docs/source/install.rst index eb061224da6..1ddab370c10 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -47,12 +47,12 @@ the binaries and images. .. note:: If you want a specific release, pass a version identifier for Fabric and Fabric-CA docker images. The command below demonstrates how to download the latest production releases - - **Fabric v2.2.0** and **Fabric CA v1.4.7** + **Fabric v2.2.1** and **Fabric CA v1.4.9** .. code:: bash curl -sSL https://bit.ly/2ysbOFE | bash -s -- - curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.7 + curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.1 1.4.9 .. note:: If you get an error running the above curl command, you may have too old a version of curl that does not handle @@ -64,7 +64,7 @@ the binaries and images. the un-shortened URL: https://raw.githubusercontent.com/hyperledger/fabric/{BRANCH}/scripts/bootstrap.sh -.. note:: For additional use pattern you can use the -h flag to view the help and available commands for the +.. note:: For additional use pattern you can use the -h flag to view the help and available commands for the Fabric-Samples bootstrap script. For example: ``curl -sSL https://bit.ly/2ysbOFE | bash -s -- -h`` diff --git a/docs/source/whatsnew.rst b/docs/source/whatsnew.rst index 8dfe1117682..af9c6d3112d 100644 --- a/docs/source/whatsnew.rst +++ b/docs/source/whatsnew.rst @@ -220,6 +220,7 @@ announced in each of the v2.x releases. * `Fabric v2.1.0 release notes `_. * `Fabric v2.1.1 release notes `_. * `Fabric v2.2.0 release notes `_. +* `Fabric v2.2.1 release notes `_. .. Licensed under Creative Commons Attribution 4.0 International License https://creativecommons.org/licenses/by/4.0/ diff --git a/release_notes/v2.2.1.md b/release_notes/v2.2.1.md index 96163d6f510..7f241dd567c 100644 --- a/release_notes/v2.2.1.md +++ b/release_notes/v2.2.1.md @@ -1,5 +1,5 @@ -v2.2.1 Release Notes - TBD, 2020 -================================ +v2.2.1 Release Notes - September 30, 2020 +========================================= What's New in Hyperledger Fabric v2.2.1 --------------------------------------- @@ -51,7 +51,17 @@ provider tracks active sessions. If some condition occurs that results in all sessions being closed, cached object handles are no longer valid so the handle cache is purged. -**FAB-18208: Do not sign gossip message if membership is empty** +**FAB-18250: peer and orderer PKCS#11 - Introduce error checking for evicting invalid PKCS#11 sessions** + +FAB-17722 introduced a call to the pkcs11 GetSessionInfo function for retrieving the current state of +the PKCS11 session. The result of this function was used to determine whether a session was still +valid to perform HSM operations or if it should be evicted from the session pool. Performance tests +showed that the call to GetSessionInfo was computationally prohibitively expensive. FAB-18242 reverted +this change and FAB-18250 introduced a new method for determining if the PKCS11 session is invalid. +Now when an HSM operation fails, we check the resultant error against the known session error codes and +evict the session from the pool if the error was the result of an invalid session. + +**FAB-18208: peer - Do not sign gossip message if membership is empty** This change suppresses the signing of gossip messages if the message will not get sent regardless due to an empty gossip membership. The change reduces CPU consumption @@ -109,15 +119,6 @@ However, chaincode still attempted to retrieve from the cache, and therefore an incorrect value may be retrieved. The fix ensures that for values larger than 64kb, the data will be retrieved from CouchDB. -**FAB-18250: Introduce error checking for evicting invalid PKCS11 sessions** - -FAB-17722 introduced a call to the pkcs11 GetSessionInfo function for retrieving the current state of -the PKCS11 session. The result of this function was used to determine whether a session was still -valid to perform HSM operations or if it should be evicted from the session pool. Performance tests -showed that the call to GetSessionInfo was computationally prohibitively expensive. FAB-18242 reverted -this change and FAB-18250 introduced a new method for determining if the PKCS11 session is invalid. -Now when an HSM operation fails, we check the resultant error against the known session error codes and -evict the session from the pool if the error was the result of an invalid session. Deprecations (existing) ----------------------- diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 56fcef1fbdf..5909abfe90d 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -6,9 +6,9 @@ # # if version not passed in, default to latest released version -VERSION=2.2.0 +VERSION=2.2.1 # if ca version not passed in, default to latest released version -CA_VERSION=1.4.7 +CA_VERSION=1.4.9 ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')") MARCH=$(uname -m) @@ -21,8 +21,8 @@ printHelp() { echo "-s : bypass fabric-samples repo clone" echo "-b : bypass download of platform-specific binaries" echo - echo "e.g. bootstrap.sh 2.2.0 1.4.7 -s" - echo "will download docker images and binaries for Fabric v2.2.0 and Fabric CA v1.4.7" + echo "e.g. bootstrap.sh 2.2.1 1.4.9 -s" + echo "will download docker images and binaries for Fabric v2.2.1 and Fabric CA v1.4.9" } # dockerPull() pulls docker images from fabric and chaincode repositories