google app engine - How can I programmatically determine which Datastore indexes are in error? -


when run update_indexes on google datastore message below. telling me determine indexes in error looking @ gui, delete these indexes.

i have 51 erroneous indexes out of 200, , copying them out of gui not feasible.

(edit: laboriously removing , adding indexes datastore-indexes.xml, identified 1 problematic index.)

good devops procedure demands sort of thing automatically.

how 1 determine indexes in error programmatically? (python, bash, or java ok.)

cannot build indexes in state error.to vacuum , rebuild indexes: 1. create backup of index.yaml specification. 2. determine indexes in state error admin console: https://appengine.google.com/datastore/indexes?&app_id=s~myproject 3. remove definitions of indexes in error index.yaml file. 4. run "appcfg.py vacuum_indexes your_app_dir/" 5. wait until error indexes no longer appear in admin console. 6. replace modified version of index.yaml file original. 7. run "appcfg.py update_indexes your_app_dir/" 

unfortunately cloud datastore doesn't have public api managing indexes , current command line tools use internal api doesn't have access information.

we're aiming have index management api sometime next year (already working on designs) , i'll make sure key use case cover.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -