leaks4809
12/08/2023, 5:47 PMspicedb migrate HEAD
against the spanner db
3. starts up spicedb server
4. runs some simple go unit tests against the spicedb instance (create schema, write relationships, check relationships)
It works for the most part except I sometimes get rpc error: code = NotFound desc = unable to list namespaces: spanner: code = "NotFound", desc = "Table not found: namespace_config"
from the go client when I call spicedbClient.CheckPermission
.
I'm wondering if the spicedb migrate HEAD
runs the migration asynchronously. The log file is kinda sparse.
If I add a <-time.NewTimer(5*time.Second).C
before calling CheckPermission
in the UTs, I get a 100% pass rate.
This could very well just be behavior from the spanner emulator but I thought I'd ask here first.