Closed Kehrlann closed 1 week ago
@Kehrlann I am able to run this test multiple times successfully against the latest commit.
Can you share a little more information? where are you setting the project ID, if its via a properties file could you please share?
Also to confirm if you log into your project via the console, you see a default database in your DataStore and it has some results if you click on it such as: name=Big Bland Band?
Hey @ldetmer thanks for reaching out!
Edit: the sample works only with the default
datastore. Any custom database-id and it fails for me.
When not using the default datastore:
There does seem to be an issue with application.properties getting overridden. If I run "gcloud config set project" to set my project ID, that gets me past your error, however it fails later when trying to run singerRepository.findSingersByFirstBand as the database id provided in application.properties gets overridden by the default value.
The request was for database '{db from application.properties}' but was attempting to access database '{default}'
I will have the team look into this and will update when we have more information.
Fix merged.
Running the
spring-cloud-gcp-data-datastore-sample
project fails with:com.google.cloud.datastore.DatastoreException: The project XXX does not exist."
Setup
Running:
Cloud Datastore User
Bug:
Running the following command:
Fails with:
Note: The first time the project is run, the error may be different, but subsequent runs all fail when loading the
@Descendant List<Instrument> instruments
fromSinger
.The query that fails is the following:
Note that the instruments are recorded in the datastore.