-
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(enterprise): Set version correctly post marshalling during restore (
#7018) * Add test for old restore to a cluster * Fix author query * fix(restore): Use correct version after marshalling The marshalPostingList function returns a KV without the version set and this causes issues if you restore a backup on top of an existing data. This PR fixes this issue by explicitly setting the version for the KV returned by the MarshalPostingList function. * Fix test for restoring old backup incremental * Address review comments * Add old backup dir * Add wait for restore, address review comments * Make test use tls, refactor out waitforrestore Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
- Loading branch information
1 parent
aa12a73
commit 30ee966
Showing
10 changed files
with
168 additions
and
74 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
Empty file.
1 change: 1 addition & 0 deletions
1
systest/backup/filesystem/data/to_restore/dgraph.20201125.173944.587/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":68,"groups":{"1":["dgraph.graphql.p_sha256hash","Author.pwd","dgraph.graphql.xid","dgraph.drop.op","dgraph.graphql.schema_history","dgraph.graphql.schema_created_at","dgraph.type","dgraph.graphql.schema","dgraph.cors","dgraph.graphql.p_query","Author.name","Person.name"],"2":[],"3":[]},"backup_id":"loving_jones5","backup_num":1,"encrypted":false,"drop_operations":null} |
Binary file added
BIN
+1 KB
systest/backup/filesystem/data/to_restore/dgraph.20201125.173944.587/r68-g1.backup
Binary file not shown.
Binary file added
BIN
+204 Bytes
systest/backup/filesystem/data/to_restore/dgraph.20201125.173944.587/r68-g2.backup
Binary file not shown.
Binary file added
BIN
+205 Bytes
systest/backup/filesystem/data/to_restore/dgraph.20201125.173944.587/r68-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
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