New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The server sends and the client stores incorrect observed_transaction_data
#1212
Comments
The same problem is present in the electric/protocol/satellite.proto Lines 245 to 246 in 0115a0a
However, on the client, electric/clients/typescript/src/satellite/client.ts Lines 1057 to 1070 in 0115a0a
electric/clients/typescript/src/satellite/client.ts Lines 1216 to 1217 in 0115a0a
|
When the sync service sends
SatOpAdditionalBegin
andSatOpAdditionalCommit
ops, it includes the so-calledmove_in_ref
in their payload. The client stores additional data refs into its localseenAdditionalData
meta row, as a comma-separated list of integeres encoded into a string:electric/clients/typescript/src/satellite/process.ts
Lines 1409 to 1416 in 0115a0a
electric/clients/typescript/src/satellite/process.ts
Lines 1460 to 1470 in 0115a0a
This
seenAdditionalData
is later fetched, parsed, and included in theSatInStartReplicationReq
message'sobserved_transaction_data
field:electric/clients/typescript/src/satellite/process.ts
Lines 879 to 889 in 0115a0a
electric/clients/typescript/src/satellite/client.ts
Lines 375 to 379 in 0115a0a
When the sync service processes that message, it expects the
observed_transaction_data
field to contain a list of transaction IDs, though:electric/components/electric/lib/electric/satellite/protocol.ex
Line 1141 in 0115a0a
electric/components/electric/lib/electric/satellite/client_reconnection_info.ex
Line 320 in 0115a0a
The text was updated successfully, but these errors were encountered: