Skip to content

refactor: make query cursor errors more specific#5086

Merged
nxsaken merged 5 commits intohyperledger-iroha:mainfrom
nxsaken:refactor/unknown-cursor
Sep 19, 2024
Merged

refactor: make query cursor errors more specific#5086
nxsaken merged 5 commits intohyperledger-iroha:mainfrom
nxsaken:refactor/unknown-cursor

Conversation

@nxsaken
Copy link
Copy Markdown
Contributor

@nxsaken nxsaken commented Sep 18, 2024

Context

  • Makes the UnknownCursor error more specific. There are several places with different logic where this error is returned (query not found, cursor mismatch, not enough items). Moves the error thrown on a query not being found in the store from UnknownCursor.
  • Part of investigation of [BUG] Queries fail with "Unknown query cursor" #5085.

Checklist

  • I've read CONTRIBUTING.md.
  • All review comments have been resolved.
  • All CI checks pass.

@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Sep 18, 2024
Signed-off-by: Nurzhan Sakén <nurzhan.sakenov@gmail.com>
Signed-off-by: Nurzhan Sakén <nurzhan.sakenov@gmail.com>
Signed-off-by: Nurzhan Sakén <nurzhan.sakenov@gmail.com>
Comment thread crates/iroha_core/src/query/store.rs Outdated
Signed-off-by: Nurzhan Sakén <nurzhan.sakenov@gmail.com>
Signed-off-by: Nurzhan Sakén <nurzhan.sakenov@gmail.com>
@nxsaken nxsaken merged commit d7d73cc into hyperledger-iroha:main Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-changes Changes in the API for client libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants