Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.6.0
-
Untriaged
-
0
-
Unknown
Description
During the review of https://review.couchbase.org/c/ns_server/+/194992 Artem Stemkovski brought up this issue
Artem Stemkovski
|
I see obvious problem for backup
|
|
Steve Watanabe
|
What problem do you see
|
|
Artem Stemkovski
|
Let's say we have just one collection C with maxTTL not specified. We create a backup. The json will have C with maxTTL not specified. You change maxTTL for c and it becomes 56
|
Then you apply backup from json and maxTTL stays 56. Must be cleared.
|
Correct?
|
|
Steve Watanabe
|
Isn't that the same behavior as on older releases (e.g. neo)?
|
|
Artem Stemkovski
|
yes. but we sort of trying to fix this
|
so I guess in addition to this commit we also need the change that always specifies maxTTL during the backup extraction
|
and I guess let PM know
|
|
Steve Watanabe
|
It's not clear to me the rules for backing up and restoring so I'll have to do some homework.
|
|
For example, if I backup a collection named myCol with certain "metadata" (history, maxTTL), do a backup, delete the collection, create a new collection with the same name but different "metadata", and then do a restore. What's the expected behavior?
|
|
Artem Stemkovski
|
I expect it to be completely overwritten. I'm not a PM on this but my understanding of a backup is that after you restore it, you should end up with the same state as when you created a backup
|
|
Steve Watanabe
|
Yes, that's what I would expect.
|
Attachments
Issue Links
- duplicates
-
MB-58773 cbbackupmgr changes maxTTL from bucket default to 0
- Closed
For Gerrit Dashboard: MB-58209 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
196613,21 | MB-58209 Ensure back compat with maxTTL changes | master | backup | Status: MERGED | +2 | +1 |
202243,4 | MB-59934 Fix for ns_server maxTTL changes | master | backup | Status: MERGED | +2 | +1 |