Skip to content
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

transaction recovery issue? #394

Open
ThomasWaldmann opened this issue Jan 23, 2017 · 1 comment
Open

transaction recovery issue? #394

ThomasWaldmann opened this issue Jan 23, 2017 · 1 comment

Comments

@ThomasWaldmann
Copy link
Contributor

ThomasWaldmann commented Jan 23, 2017

See there: borgbackup/borg#2099

Not sure if the bug also happens with attic, but the suspicious code is also in attic:

https://github.com/jborg/attic/blob/0.16/attic/repository.py#L467

@jborg can you remember why you used "ab" (and not "wb") there?

At first glance, it seems to make no sense to append to an existing file, esp. if the file is a valid segment file that has already a MAGIC at the beginning and some entries in it, this would just add another MAGIC in the middle of the file (but that should not be there).

So, was that just a typo or is there some reason behind it?

@ThomasWaldmann
Copy link
Contributor Author

header_fmt.unpack(b'ATTICSEGx')
(1230263361, 1195725635, 120) # crc, size, tag

So the size value to look for in exceptions is 1195725635.

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

No branches or pull requests

1 participant