Skip to content

Name Snapshot Data Blobs by UUID (#40652)#41523

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:40652-7.x
Apr 25, 2019
Merged

Name Snapshot Data Blobs by UUID (#40652)#41523
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:40652-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

  • Name Snapshot Data Blobs by UUID

  • There is no functional reason why we need incremental naming for these files but

  • Since we store the exact names of the data blobs in all the metadata anyway, we can make this change without any BwC considerations

    • Even on the worst case scenario of a downgrade the functionality would continue working since the incremental names wouldn't conflict with the uuids and the number parsing for finding the next incremental name suppresses the exception when encountring a non-numeric value after the double underscore prefix

backport of #40652

* Name Snapshot Data Blobs by UUID

* There is no functional reason why we need incremental naming for these files but
  * As explained in #38941 it is a possible source of corrupting the repository
  * It wastes API calls for the list operation
  * Is just needless complication
* Since we store the exact names of the data blobs in all the metadata anyway, we can make this change without any BwC considerations
  * Even on the worst case scenario of a downgrade the functionality would continue working since the incremental names wouldn't conflict with the uuids and the number parsing for finding the next incremental name suppresses the exception when encountring a non-numeric value after the double underscore prefix
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@original-brownbear original-brownbear merged commit cd830b5 into elastic:7.x Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue >refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants