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

backup operator: fixed incorrect backup file naming convention. #2075

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kapouille
Copy link
Contributor

When limiting the number of backups, if the revision would move to needing another digit, the logic would never select a new entry as _ is > to 9 in ascii terms.

Note that this is backwards incompatible as now files receive a correct padding and old revisions will still be incorrectly handled.

@etcd-bot
Copy link
Collaborator

etcd-bot commented Apr 5, 2019

Can one of the admins verify this patch?

2 similar comments
@etcd-bot
Copy link
Collaborator

etcd-bot commented Apr 5, 2019

Can one of the admins verify this patch?

@etcd-bot
Copy link
Collaborator

etcd-bot commented Apr 5, 2019

Can one of the admins verify this patch?

@hexfusion
Copy link
Member

@etcd-bot ok to test

@mikenorgate
Copy link

@kapouille it looks like we missed this line in the tests

suffix := fmt.Sprintf("%d", rand.Uint64())

@kapouille kapouille force-pushed the snapshot_naming_fix branch from a18b469 to 6a215d5 Compare May 16, 2019 09:12
kapouille added 3 commits May 16, 2019 10:14
When limiting the number of backups, if the revision would move to needing another digit, the logic would never select a new entry as _ is > to 9 in ascii terms.

Note that this is backwards incompatible as now files receive a correct padding and old revisions will still be incorrectly handled.
@kapouille kapouille force-pushed the snapshot_naming_fix branch from 6a215d5 to b1bbc88 Compare May 16, 2019 09:16
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants