Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved gateway error for transient data failure #3445

Merged
merged 1 commit into from
May 25, 2022

Conversation

andrew-coleman
Copy link
Member

When transient data is passed to the gateway in a transaction submit, the gateway is more cautious about which orgs it will select to endorse. It alters the ChaincodeInterest to only allow orgs that are in the distribution policy for the PDCs written to by the chaincode.
This commit doesn’t change the behaviour, but gives a more helpful error message if this layer of protection caused the submit to fail due to the lack of endorsing orgs.
This will help to diagnose issues such as #3328 which took a long time to resolve because of the generic error message.

Signed-off-by: andrew-coleman [email protected]

When transient data is passed to the gateway in a transaction submit, the gateway is more cautious about which orgs it will select to endorse.  It alters the ChaincodeInterest to only allow orgs that are in the distribution policy for the PDCs written to by the chaincode.
This commit doesn’t change the behaviour, but gives a more helpful error message if this layer of protection caused the submit to fail due to the lack of endorsing orgs.
This will help to diagnose issues such as hyperledger#3328 which took a long time to resolve because of the generic error message.

Signed-off-by: andrew-coleman <[email protected]>
@andrew-coleman andrew-coleman requested a review from a team as a code owner May 24, 2022 14:44
@denyeart denyeart merged commit 807c6de into hyperledger:main May 25, 2022
@denyeart
Copy link
Contributor

@Mergifyio backport release-2.4

@mergify
Copy link

mergify bot commented May 25, 2022

backport release-2.4

✅ Backports have been created

@andrew-coleman andrew-coleman deleted the transient_msg branch May 26, 2022 07:10
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