-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backup): handle manifest version logic, update manifest version t…
…o 2105 (#7825) The backward compatibility of the backup's manifest was broken by #7810, although the tool was added (#7815) that enables smooth migration of manifest. This PR makes backup backward compatible, by updating the manifest(in-memory) after reading.
- Loading branch information
1 parent
22db22f
commit 83a0c53
Showing
34 changed files
with
172 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094442.220/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"full","since":38,"groups":{"1":["dgraph.graphql.schema_history","dgraph.drop.op","dgraph.graphql.p_sha256hash","dgraph.graphql.schema","dgraph.cors","dgraph.type","dgraph.graphql.xid","dgraph.graphql.schema_created_at","dgraph.graphql.p_query"],"2":["p2","p1","p3"],"3":[]},"backup_id":"jolly_yalow0","backup_num":1,"encrypted":false,"drop_operations":null} |
Binary file added
BIN
+515 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094442.220/r38-g1.backup
Binary file not shown.
Binary file added
BIN
+334 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094442.220/r38-g2.backup
Binary file not shown.
Binary file added
BIN
+238 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094442.220/r38-g3.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094634.533/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":54,"groups":{"1":["dgraph.graphql.p_sha256hash","dgraph.graphql.schema","dgraph.graphql.schema_history","dgraph.drop.op","dgraph.type","dgraph.cors","dgraph.graphql.schema_created_at","dgraph.graphql.p_query","dgraph.graphql.xid"],"2":["p4","p3","p2","p1"],"3":[]},"backup_id":"jolly_yalow0","backup_num":2,"encrypted":false,"drop_operations":[{"drop_op":1}]} |
Binary file added
BIN
+673 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094634.533/r54-g1.backup
Binary file not shown.
Binary file added
BIN
+325 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094634.533/r54-g2.backup
Binary file not shown.
Binary file added
BIN
+238 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094634.533/r54-g3.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094648.003/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":58,"groups":{"1":["dgraph.graphql.p_sha256hash","dgraph.graphql.p_query","dgraph.drop.op","dgraph.graphql.schema_history","dgraph.graphql.xid","dgraph.graphql.schema","dgraph.cors","dgraph.graphql.schema_created_at","dgraph.type"],"2":["p1","p4","p3","p2"],"3":[]},"backup_id":"jolly_yalow0","backup_num":3,"encrypted":false,"drop_operations":[{"drop_op":2,"drop_value":"p3"}]} |
Binary file added
BIN
+424 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094648.003/r58-g1.backup
Binary file not shown.
Binary file added
BIN
+261 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094648.003/r58-g2.backup
Binary file not shown.
Binary file added
BIN
+238 Bytes
systest/backup/filesystem/data/to_restore/2/dgraph.20210517.094648.003/r58-g3.backup
Binary file not shown.
Binary file added
BIN
+456 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095641.969/r9-g1.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095641.969/r9-g2.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095641.969/r9-g3.backup
Binary file not shown.
Binary file added
BIN
+641 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095716.130/r21-g1.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095716.130/r21-g2.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095716.130/r21-g3.backup
Binary file not shown.
Binary file added
BIN
+410 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095726.320/r26-g1.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095726.320/r26-g2.backup
Binary file not shown.
Binary file added
BIN
+154 Bytes
systest/backup/filesystem/data/to_restore/3/dgraph.20210517.095726.320/r26-g3.backup
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Manifests":[{"type":"full","since":0,"read_ts":9,"groups":{"1":["\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p1","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.p_query","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.xid","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.schema","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.drop.op","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.type","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p3","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p2"],"2":[],"3":[]},"backup_id":"quirky_kapitsa4","backup_num":1,"version":2103,"path":"dgraph.20210517.095641.969","encrypted":false,"drop_operations":null,"compression":"snappy"},{"type":"incremental","since":0,"read_ts":21,"groups":{"1":["\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.drop.op","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p1","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.schema","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.p_query","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p3","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.xid","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p4","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p2","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.type"],"2":[],"3":[]},"backup_id":"quirky_kapitsa4","backup_num":2,"version":2103,"path":"dgraph.20210517.095716.130","encrypted":false,"drop_operations":[{"drop_op":1}],"compression":"snappy"},{"type":"incremental","since":0,"read_ts":26,"groups":{"1":["\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p4","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p2","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.type","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p1","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.schema","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.p_query","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p3","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.drop.op","\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000dgraph.graphql.xid"],"2":[],"3":[]},"backup_id":"quirky_kapitsa4","backup_num":3,"version":2103,"path":"dgraph.20210517.095726.320","encrypted":false,"drop_operations":[{"drop_op":2,"drop_value":"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000p3"}],"compression":"snappy"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters