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

Datastore crashed with assertion #68

Open
liyuqian opened this issue Jan 20, 2020 · 3 comments
Open

Datastore crashed with assertion #68

liyuqian opened this issue Jan 20, 2020 · 3 comments

Comments

@liyuqian
Copy link

The assertion assert(isLast != moreBatches); in https://github.com/dart-lang/gcloud/blob/master/lib/src/datastore_impl.dart#L555 failed because moreResults == 'NOT_FINISHED' instead of 'MORE_RESULTS_AFTER_LIMIT'.

See MoreResultsType in https://cloud.google.com/datastore/docs/reference/data/rpc/google.datastore.v1

@liyuqian
Copy link
Author

@mkustermann

@mkustermann
Copy link
Member

The implementation you are referring to is based on a json-based public REST api. This was only a stop-gap for non-AppEngine use cases until we had a much more performant gRPC-based implementation which works everywhere (which is why IIRC it is only under lib/src).

The gRPC based implementation has been available for a long time, though inside package:appengine, see lib/src/grpc_api_impl/datastore_impl.dart.

For many years now I haven't worked on those packages, @jonasfj is now the primary drive behind those packages.

@jonasfj
Copy link
Member

jonasfj commented Jan 21, 2020

See also dart-archive/gcloud#86

@devoncarew devoncarew transferred this issue from dart-archive/gcloud Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants