Commit 8ffa576
Restore default shard_path_type to FIXED for snapshot repositories (#20940)
PR #18163 changed the default shard_path_type from FIXED to HASHED_PREFIX,
which causes snapshot blobs to be uploaded outside the configured base_path.
This is a breaking change for users upgrading from 2.x to 3.x, as it breaks
incremental backups and places files outside the expected repository path.
Restoring the default to FIXED to match the 2.x behavior and the existing
IndexId.DEFAULT_SHARD_PATH_TYPE constant.
Signed-off-by: mango766 <mango766@users.noreply.github.com>
Co-authored-by: easonysliu <easonysliu@tencent.com>1 parent 14faf38 commit 8ffa576
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- server/src/main/java/org/opensearch/repositories/blobstore
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
0 commit comments