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
os/bluestore: GC infra refactor, more UTs and GC range calculation fixes #11482
Conversation
ce917c7
to
57bf13a
Compare
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.
Fix looks good!
@@ -735,6 +735,18 @@ class BlueStore : public ObjectStore, | |||
}; | |||
typedef boost::intrusive_ptr<Onode> OnodeRef; | |||
|
|||
//Made a specific class to be able to verify GC logics in Unit Tests | |||
struct GarbageCollector { |
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.
I think it's simpler to just make this a method of ExtentMap, which already includes several unit tests in test_bluestore_types.cc
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.
Yeah, that's better...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
57bf13a
to
c4344dc
Compare
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
c4344dc
to
47c44a2
Compare
@liewegas - fixed |
Client may flush and drop caps at the same time. If client need to send cap reconnect before the caps get flushed. The issued caps in the cap reconnect does not include the flushing caps. When choosing lock states, MDS only consider the issued caps in cap reconnect, it may choose wrong states. Fixes: ceph#11482 Signed-off-by: Yan, Zheng <zyan@redhat.com> (cherry picked from commit ce9a596)
Signed-off-by: Igor Fedotov ifedotov@mirantis.com