Skip to content

Single-property index in index.yaml causes deployment failure #13546

@iZUMi-kyouka

Description

@iZUMi-kyouka
  • Environment: V9-clean-slate-sql

Steps to reproduce

  • ./gradlew appEngineDeployAll

Expected behaviour

  • Deployment succeeds

Actual behaviour

  • Deployment fails with

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This index:
CREATE SPARSE(ALL) DATASTORE INDEX ON Instructor (googleId ASC);
is not necessary, since single-property indexes are built in. Please remove it from your index file and upgrade to the latest version of the SDK, if you haven't already.

with reasons stated in the error

Solution

- kind: Instructor
  properties:
  - direction: asc
    name: googleId

These lines should be removed (previously it is also indexing the isArchived property)

Metadata

Metadata

Assignees

No one assigned

    Labels

    c.BugBug/defect reportc.DevOpsProcess-related or build-related improvement and addition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions