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

Allow successful queries if one of the configured peers is down #474

Open
arner opened this issue May 2, 2023 · 0 comments · May be fixed by #475
Open

Allow successful queries if one of the configured peers is down #474

arner opened this issue May 2, 2023 · 0 comments · May be fixed by #475

Comments

@arner
Copy link
Contributor

arner commented May 2, 2023

When doing a fabric.ChaincodeQuery with WithEndorsersFromMyOrg, the FSC queries all configured peers of the own organization. On any query, it validates if all responses match:

func (i *Invoke) query() ([]byte, error) {

In some situations this may be important (i.e. querying other orgs, not trusting all own peers). But sometimes availibility should be considered more important than the integrity. For example: I have three peers in my organization and I want to update one. The client should still be able to query (and invoke).

Perhaps it would be worthwhile to have a flag to 'trust any response' and it would just take the first of all the responses that has a valid payload?

@adecaro adecaro linked a pull request May 6, 2023 that will close this issue
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 a pull request may close this issue.

1 participant