Skip to content
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

Merged
merged 3 commits into from Oct 14, 2016

Conversation

ifed01
Copy link
Contributor

@ifed01 ifed01 commented Oct 13, 2016

Signed-off-by: Igor Fedotov ifedotov@mirantis.com

Copy link
Member

@liewegas liewegas left a 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 {
Copy link
Member

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

Copy link
Contributor Author

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>
Igor Fedotov added 2 commits October 14, 2016 12:39
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
@ifed01
Copy link
Contributor Author

ifed01 commented Oct 14, 2016

@liewegas - fixed

@ifed01 ifed01 added the bug-fix label Oct 14, 2016
@liewegas liewegas merged commit 166d154 into ceph:master Oct 14, 2016
@ifed01 ifed01 deleted the wip-bluestore-gc-fixes2 branch October 14, 2016 15:11
dalgaaf pushed a commit to dalgaaf/ceph that referenced this pull request Apr 26, 2018
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants