Rodolfo
10/11/2024, 3:15 PMsomething not found
- write works
If I swap read_url with url (to validate the conenction stings), then checkPermission works and writes gie an Error 500 as probably it cant wrinte on the replica. (So it is expected, and the connection string is fine)
Both BDs have data on relation_tuple_transaction / namespace_config so the replica is working.
Could you give me any pointer on how to debug this?Rodolfo
10/11/2024, 3:23 PMyetitwo
10/12/2024, 4:13 AMspicedb datastore repair on the replica? if you're using logical replication, the transaction IDs will be out of syncRodolfo
10/12/2024, 4:08 PMRodolfo
10/12/2024, 4:12 PMspicedb datastore repair on the replica.
Did I miss a guide? I can try to run it.
I just let the bitnami postgres chart to handle the replication, so I expect to be a physical replication not a logical oneRodolfo
10/12/2024, 4:12 PMyetitwo
10/13/2024, 10:59 PMyetitwo
10/13/2024, 10:59 PMyetitwo
10/13/2024, 10:59 PMyetitwo
10/13/2024, 10:59 PMyetitwo
10/13/2024, 10:59 PMspicedb datastore repair with configuration that points at the replicayetitwo
10/13/2024, 11:00 PMRodolfo
10/14/2024, 10:00 AMERROR: cannot execute pg_current_xact_id() during recovery
(executed manually)
I will give more news laterRodolfo
10/14/2024, 10:40 AMspicedb datastore repair
{"level":"info","time":"2024-10-14T10:36:12Z","message":"using postgres datastore engine"}
{"level":"debug","pgx":{"args":[],"commandTag":"SHOW","pid":11410,"sql":"SHOW track_commit_timestamp;","time":0.538},"time":"2024-10-14T10:36:12Z","message":"Query"}
{"level":"warn","time":"2024-10-14T10:36:12Z","message":"datastore background garbage collection disabled"}
{"level":"debug","pgx":{"args":[],"commandTag":"SHOW","pid":10873,"sql":"SHOW track_commit_timestamp;","time":1.342708},"time":"2024-10-14T10:36:12Z","message":"Query"}
{"level":"debug","replica-count":1,"time":"2024-10-14T10:36:12Z","message":"Using replicas for reads"}
{"level":"error","error":"datastore of type *proxy.strictReplicatedDatastore does not support the repair operation","time":"2024-10-14T10:36:12Z","message":"terminated with errors"}
TL;DR;: proxy.strictReplicatedDatastore does not support the repair operation
Notes:
I ran with the some ENV properties the I am running with the serve command.
(it works on writes, but fails on reads)
SELECT max(xid::text::integer) FROM relation_tuple_transaction is aligned between primary and replica
And looking at spiceDB code, i tried to run the pg_current_xact_id onte replica and got cannot execute pg_current_xact_id() during recoveryyetitwo
10/14/2024, 2:37 PMRodolfo
10/14/2024, 8:45 PMyetitwo
10/15/2024, 5:45 PMyetitwo
10/15/2024, 5:54 PMyetitwo
10/15/2024, 5:54 PMyetitwo
10/15/2024, 5:54 PMyetitwo
10/15/2024, 6:48 PMspicedb datastore repair on the replica, and reenable replicationRodolfo
10/16/2024, 8:38 AMRodolfo
10/16/2024, 8:39 AMyetitwo
10/16/2024, 2:33 PMRodolfo
10/16/2024, 2:38 PMRodolfo
10/16/2024, 2:39 PMRodolfo
10/16/2024, 2:39 PMyetitwo
10/16/2024, 2:57 PM