Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Transactions are corrupted when server restarts #189

Closed
tathougies opened this issue Mar 25, 2021 · 3 comments
Closed

Transactions are corrupted when server restarts #189

tathougies opened this issue Mar 25, 2021 · 3 comments

Comments

@tathougies
Copy link

I'm on v0.10.0 from git.
I'm running a simple cluster of 3 VMs (although i see the same problem when running locally on different ports). I'm using the builtin UV TCP transport.
When I take a node down and bring it back up, the first X bytes of a transaction are cut off. If I examine the open-1 file of the node I take down, it contains the full transaction data, but when I restart the node, the transaction is corrupted.

Any ideas? How would I debug?

@tathougies
Copy link
Author

I read through the code. There is this comment on line 740 of uv_segment.c:

        /* TODO: enforce the requirement of 8-byte alignment also in the
         * higher-level APIs. */

That would have been really good to know. Even a comment in the docs somewhere, or a hard failure, would have made this way easier to debug. Everything seems to work now.

@MathieuBordere
Copy link
Contributor

@tathougies Thanks, we'll keep it in mind for future improvements. Can I close this?

@tathougies
Copy link
Author

Yes. you can close this. Something that would pad/unpad automatically would be good. Otherwise, an error code should be returned

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants