-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix partitioned query database header version #1886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
davisp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests and code changes look good but I'm not 100% on those eunit test changes. EUnit is kinda subtle so if there's obvious answers I'd accept that.
|
|
||
|
|
||
| downgrade_test_() -> | ||
| downgrade_test() -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure that this is right? eunit deferred tests are weird so i can never tell off hand if the trailing underscore is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my intention is not to let this downgrade_test_/0 to run because we remove the downgrade logic from PQ to non-PQ test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha. Then I'd just delete the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
|
|
||
|
|
||
| setup() -> | ||
| setup(_) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because i used foreachx to perform test from 6 to 8, and 7 to 8 respectively now. So just follow the case in
| setup(_) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotchya. Sounds good. EUnit is hard.
davisp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 once that downgrade test is removed.
6257930 to
70e8fa8
Compare
70e8fa8 to
6d317e1
Compare
Overview
Allow to upgrade database from version 7 to version 8 which supports the partitioned query. To do so, the database can be downgraded from version 8 to version 7 once there is need to downgrade.
Also support to upgrade database from version 6 to version 8 if database is not accessed for long time to skip version 7.
Testing recommendations
make check skip_deps+=couch_epi apps=couch tests=upgrade_test_
Related Issues or Pull Requests
#1789
Checklist