Sudden error in an RO Replica
Dear Neon Team,
we are currently switching from a self-hosted database to Neon and have been very pleased so far.
I am personally performing the migration and have now encountered an error that occurs in a table, but only when I access it via the RO Replica.
The executed SQL is executed via Dapper in C#, is very simple and reads as follows: SELECT * FROM "Devices"."Android" WHERE "Identifier" = @Identifier AND "Salt" = @Salt
As soon as I try to execute this via the RW Node, everything works, but I would still like to report it as a BUG, as I am unsure why this is happening.
I think if I delete the RO Replica and recreate it, everything should work again. I haven't done this yet as I don't know if it would make it harder for you to understand how the bug was created on the server side.
The entire stack trace is attached below.
I hope this helps to fix the bug and make Neon a better service.
If further information is required, I will of course be happy to provide it within my means.
2 Replies
ratty-blush•2y ago
cc @John @ Neon @Christian Schwarz
dependent-tan•2y ago
This can creep in if the replica is too far behind (eg. scale to 0 while RW is busy).
https://github.com/neondatabase/neon/pull/6357
I think the PR to address this issue is pending review and deployment.