Sitelet https://github.com/googleapis/google-cloud-java/issues/639
Skip to content

Expose consistency setting in LocalGcdHelper #639

Description

@ajkannan

The default is 0.9, but it's often useful to set it to 1.0 for test utility methods (i.e. clearing all entities using a non-ancestor query in between unit tests).

This can be set in LocalGcdHelper.startGcd(..) using the following option:

--consistency=...
The fraction of job application attempts that will succeed, with 0.0 resulting in no attempts succeeding, and 1.0 resulting in all attempts succeeding. Defaults to 0.9. Note that setting this to 1.0 may mask incorrect assumptions about the consistency of non-ancestor queries; non-ancestor queries are eventually consistent.

Activity

  1. ajkannan commented on Feb 11, 2016

    @ajkannan
    Author

    This consistency setting should be used in DatastoreTest, since we use a query to get and delete all entities between tests.

  2. self-assigned this
    on Feb 11, 2016
  3. added a commit that references this issue on Sep 15, 2022
  4. added a commit that references this issue on Feb 24, 2026
  5. added a commit that references this issue on Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions