Closed vroldanbet closed 1 year ago
This should be addressed for CRDB as of https://github.com/authzed/spicedb/pull/1042
@vroldanbet is this complete as of https://github.com/authzed/spicedb/blob/main/internal/datastore/postgres/postgres.go#L160?
@josephschorr yup!
If PostgreSQL datastores are initialized on an unreachable/unresponsive database backend, the initialization hangs indefinitely, and the spicedb process wont report becoming healthy.
We can see this is caused by a missing deadline:
https://github.com/authzed/spicedb/blob/26d13e56948492537e02501c8d018e0def5ad204/internal/datastore/crdb/crdb.go#L92-L95