Skip to content

Listing resolver states in LocatableResolverBackedStores ignores execute state in scan properties #3226

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

Open
alecgrieser opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alecgrieser
Copy link
Collaborator

The LocatableResolverBackedStore (which presents a façade in front of a LocatableResolver (a generalization of the directory layer) that allows it to be accessed via the JDBC interface) has a method for scanning the "resolver states" associated with its underlying resolver. That scan method currently ignores the "execution state", which in turn means that it won't ever contribute to the number of rows scanned by the database, so a (mostly hypothetical and far-fetched) scenario where someone asked to limit the number of rows read by the database and then proceeded to scan the resolver state record (which is limited to one per directory layer) in a tight loop wouldn't get the out-of-band limit they expected.

@alecgrieser alecgrieser added the bug Something isn't working label Mar 5, 2025
alecgrieser added a commit to alecgrieser/fdb-record-layer that referenced this issue Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant