{"action":"created","comment":{"url":"https://api.github.com/repos/ceph/ceph/pulls/comments/221393956","pull_request_review_id":160040521,"id":221393956,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTM5Mzk1Ng==","diff_hunk":"@@ -6287,6 +6293,50 @@ int OSD::_do_command(\n     probe_smart(devid, ds);\n   }\n \n+  else if (prefix == \"clear_cache\") {\n+    dout(20) << \"clearing all caches\" << dendl;\n+    // Clear the objectstore's cache - onode for Bluestore, pagecache for Filestore\n+    r = store->flush_cache();","path":"src/osd/OSD.cc","position":20,"original_position":20,"commit_id":"96f3870be2d969215cb30f6fc4af67535af55b97","original_commit_id":"96f3870be2d969215cb30f6fc4af67535af55b97","user":{"login":"batrick","id":548304,"node_id":"MDQ6VXNlcjU0ODMwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/548304?v=4","gravatar_id":"","url":"https://api.github.com/users/batrick","html_url":"https://github.com/batrick","followers_url":"https://api.github.com/users/batrick/followers","following_url":"https://api.github.com/users/batrick/following{/other_user}","gists_url":"https://api.github.com/users/batrick/gists{/gist_id}","starred_url":"https://api.github.com/users/batrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batrick/subscriptions","organizations_url":"https://api.github.com/users/batrick/orgs","repos_url":"https://api.github.com/users/batrick/repos","events_url":"https://api.github.com/users/batrick/events{/privacy}","received_events_url":"https://api.github.com/users/batrick/received_events","type":"User","site_admin":false},"body":"I think you're just seeing the messages printed to the terminal from a vstart cluster? (IOW, all of the daemons' stderr is connected to your terminal so you see all of these derr messages.) I don't think it's supposed to be automatic like that.","created_at":"2018-09-28T22:17:13Z","updated_at":"2018-09-28T22:17:13Z","html_url":"https://github.com/ceph/ceph/pull/24270#discussion_r221393956","pull_request_url":"https://api.github.com/repos/ceph/ceph/pulls/24270","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph/pulls/comments/221393956"},"html":{"href":"https://github.com/ceph/ceph/pull/24270#discussion_r221393956"},"pull_request":{"href":"https://api.github.com/repos/ceph/ceph/pulls/24270"}},"in_reply_to_id":221346936},"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/24270","id":217992692,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3OTkyNjky","html_url":"https://github.com/ceph/ceph/pull/24270","diff_url":"https://github.com/ceph/ceph/pull/24270.diff","patch_url":"https://github.com/ceph/ceph/pull/24270.patch","issue_url":"https://api.github.com/repos/ceph/ceph/issues/24270","number":24270,"state":"open","locked":false,"title":"osd: add clear_cache and get_cache_object_count commands","user":{"login":"mogeb","id":5495954,"node_id":"MDQ6VXNlcjU0OTU5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5495954?v=4","gravatar_id":"","url":"https://api.github.com/users/mogeb","html_url":"https://github.com/mogeb","followers_url":"https://api.github.com/users/mogeb/followers","following_url":"https://api.github.com/users/mogeb/following{/other_user}","gists_url":"https://api.github.com/users/mogeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mogeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogeb/subscriptions","organizations_url":"https://api.github.com/users/mogeb/orgs","repos_url":"https://api.github.com/users/mogeb/repos","events_url":"https://api.github.com/users/mogeb/events{/privacy}","received_events_url":"https://api.github.com/users/mogeb/received_events","type":"User","site_admin":false},"body":"Fixes: http://tracker.ceph.com/issues/24176\r\n\r\nSigned-off-by: Mohamad Gebai <mgebai@suse.com>\r\n\r\n\r\n<!--\r\nThank you for opening a pull request!  Here are some tips on creating\r\na well formatted contribution.\r\n\r\nPlease give your pull request a title like \"[component]: [short description]\"\r\n\r\nThis is the format for commit messages:\r\n\r\n\"\"\"\r\n[component]: [short description]\r\n\r\n[A longer multiline description]\r\n\r\nFixes: [ticket URL on tracker.ceph.com, create one if necessary]\r\nSigned-off-by: [Your Name] <[your email]>\r\n\"\"\"\r\n\r\nThe Signed-off-by line is important, and it is your certification that\r\nyour contributions satisfy the Developers Certificate or Origin.  For\r\nmore detail, see SubmittingPatches.rst.\r\n\r\nThe component is the short name of a major daemon or subsystem,\r\nsomething like \"mon\", \"osd\", \"mds\", \"rbd, \"rgw\", etc. For ceph-mgr modules,\r\ngive the component as \"mgr/<module name>\" rather than a path into pybind.\r\n\r\nFor more examples, simply use \"git log\" and look at some historical commits.\r\n\r\nThis was just a quick overview.  More information for contributors is available here:\r\nhttps://raw.githubusercontent.com/ceph/ceph/master/SubmittingPatches.rst\r\n\r\n-->\r\n\r\n- [x] References tracker ticket\r\n- [ ] Updates documentation if necessary\r\n- [ ] Includes tests for new functionality or reproducer for bug\r\n\r\n","created_at":"2018-09-25T14:02:42Z","updated_at":"2018-09-28T22:17:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b60866914df90c6372601475440e34e1d8982a30","assignee":null,"assignees":[],"requested_reviewers":[{"login":"liewegas","id":433031,"node_id":"MDQ6VXNlcjQzMzAzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/433031?v=4","gravatar_id":"","url":"https://api.github.com/users/liewegas","html_url":"https://github.com/liewegas","followers_url":"https://api.github.com/users/liewegas/followers","following_url":"https://api.github.com/users/liewegas/following{/other_user}","gists_url":"https://api.github.com/users/liewegas/gists{/gist_id}","starred_url":"https://api.github.com/users/liewegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liewegas/subscriptions","organizations_url":"https://api.github.com/users/liewegas/orgs","repos_url":"https://api.github.com/users/liewegas/repos","events_url":"https://api.github.com/users/liewegas/events{/privacy}","received_events_url":"https://api.github.com/users/liewegas/received_events","type":"User","site_admin":false},{"login":"gregsfortytwo","id":908479,"node_id":"MDQ6VXNlcjkwODQ3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/908479?v=4","gravatar_id":"","url":"https://api.github.com/users/gregsfortytwo","html_url":"https://github.com/gregsfortytwo","followers_url":"https://api.github.com/users/gregsfortytwo/followers","following_url":"https://api.github.com/users/gregsfortytwo/following{/other_user}","gists_url":"https://api.github.com/users/gregsfortytwo/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsfortytwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsfortytwo/subscriptions","organizations_url":"https://api.github.com/users/gregsfortytwo/orgs","repos_url":"https://api.github.com/users/gregsfortytwo/repos","events_url":"https://api.github.com/users/gregsfortytwo/events{/privacy}","received_events_url":"https://api.github.com/users/gregsfortytwo/received_events","type":"User","site_admin":false},{"login":"jdurgin","id":1022584,"node_id":"MDQ6VXNlcjEwMjI1ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1022584?v=4","gravatar_id":"","url":"https://api.github.com/users/jdurgin","html_url":"https://github.com/jdurgin","followers_url":"https://api.github.com/users/jdurgin/followers","following_url":"https://api.github.com/users/jdurgin/following{/other_user}","gists_url":"https://api.github.com/users/jdurgin/gists{/gist_id}","starred_url":"https://api.github.com/users/jdurgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdurgin/subscriptions","organizations_url":"https://api.github.com/users/jdurgin/orgs","repos_url":"https://api.github.com/users/jdurgin/repos","events_url":"https://api.github.com/users/jdurgin/events{/privacy}","received_events_url":"https://api.github.com/users/jdurgin/received_events","type":"User","site_admin":false},{"login":"neha-ojha","id":15874529,"node_id":"MDQ6VXNlcjE1ODc0NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/15874529?v=4","gravatar_id":"","url":"https://api.github.com/users/neha-ojha","html_url":"https://github.com/neha-ojha","followers_url":"https://api.github.com/users/neha-ojha/followers","following_url":"https://api.github.com/users/neha-ojha/following{/other_user}","gists_url":"https://api.github.com/users/neha-ojha/gists{/gist_id}","starred_url":"https://api.github.com/users/neha-ojha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neha-ojha/subscriptions","organizations_url":"https://api.github.com/users/neha-ojha/orgs","repos_url":"https://api.github.com/users/neha-ojha/repos","events_url":"https://api.github.com/users/neha-ojha/events{/privacy}","received_events_url":"https://api.github.com/users/neha-ojha/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":144329561,"node_id":"MDU6TGFiZWwxNDQzMjk1NjE=","url":"https://api.github.com/repos/ceph/ceph/labels/core","name":"core","color":"0041a2","default":false},{"id":134774006,"node_id":"MDU6TGFiZWwxMzQ3NzQwMDY=","url":"https://api.github.com/repos/ceph/ceph/labels/feature","name":"feature","color":"00ff24","default":false},{"id":340048817,"node_id":"MDU6TGFiZWwzNDAwNDg4MTc=","url":"https://api.github.com/repos/ceph/ceph/labels/needs-review","name":"needs-review","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ceph/ceph/pulls/24270/commits","review_comments_url":"https://api.github.com/repos/ceph/ceph/pulls/24270/comments","review_comment_url":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/24270/comments","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/96f3870be2d969215cb30f6fc4af67535af55b97","head":{"label":"mogeb:clear-cache","ref":"clear-cache","sha":"96f3870be2d969215cb30f6fc4af67535af55b97","user":{"login":"mogeb","id":5495954,"node_id":"MDQ6VXNlcjU0OTU5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5495954?v=4","gravatar_id":"","url":"https://api.github.com/users/mogeb","html_url":"https://github.com/mogeb","followers_url":"https://api.github.com/users/mogeb/followers","following_url":"https://api.github.com/users/mogeb/following{/other_user}","gists_url":"https://api.github.com/users/mogeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mogeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogeb/subscriptions","organizations_url":"https://api.github.com/users/mogeb/orgs","repos_url":"https://api.github.com/users/mogeb/repos","events_url":"https://api.github.com/users/mogeb/events{/privacy}","received_events_url":"https://api.github.com/users/mogeb/received_events","type":"User","site_admin":false},"repo":{"id":82331417,"node_id":"MDEwOlJlcG9zaXRvcnk4MjMzMTQxNw==","name":"ceph","full_name":"mogeb/ceph","private":false,"owner":{"login":"mogeb","id":5495954,"node_id":"MDQ6VXNlcjU0OTU5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5495954?v=4","gravatar_id":"","url":"https://api.github.com/users/mogeb","html_url":"https://github.com/mogeb","followers_url":"https://api.github.com/users/mogeb/followers","following_url":"https://api.github.com/users/mogeb/following{/other_user}","gists_url":"https://api.github.com/users/mogeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mogeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogeb/subscriptions","organizations_url":"https://api.github.com/users/mogeb/orgs","repos_url":"https://api.github.com/users/mogeb/repos","events_url":"https://api.github.com/users/mogeb/events{/privacy}","received_events_url":"https://api.github.com/users/mogeb/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mogeb/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":true,"url":"https://api.github.com/repos/mogeb/ceph","forks_url":"https://api.github.com/repos/mogeb/ceph/forks","keys_url":"https://api.github.com/repos/mogeb/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mogeb/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mogeb/ceph/teams","hooks_url":"https://api.github.com/repos/mogeb/ceph/hooks","issue_events_url":"https://api.github.com/repos/mogeb/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/mogeb/ceph/events","assignees_url":"https://api.github.com/repos/mogeb/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/mogeb/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/mogeb/ceph/tags","blobs_url":"https://api.github.com/repos/mogeb/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mogeb/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mogeb/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mogeb/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mogeb/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/mogeb/ceph/languages","stargazers_url":"https://api.github.com/repos/mogeb/ceph/stargazers","contributors_url":"https://api.github.com/repos/mogeb/ceph/contributors","subscribers_url":"https://api.github.com/repos/mogeb/ceph/subscribers","subscription_url":"https://api.github.com/repos/mogeb/ceph/subscription","commits_url":"https://api.github.com/repos/mogeb/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mogeb/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mogeb/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mogeb/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mogeb/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/mogeb/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mogeb/ceph/merges","archive_url":"https://api.github.com/repos/mogeb/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mogeb/ceph/downloads","issues_url":"https://api.github.com/repos/mogeb/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/mogeb/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/mogeb/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/mogeb/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mogeb/ceph/labels{/name}","releases_url":"https://api.github.com/repos/mogeb/ceph/releases{/id}","deployments_url":"https://api.github.com/repos/mogeb/ceph/deployments","created_at":"2017-02-17T19:35:11Z","updated_at":"2018-05-18T15:56:21Z","pushed_at":"2018-09-27T17:49:40Z","git_url":"git://github.com/mogeb/ceph.git","ssh_url":"git@github.com:mogeb/ceph.git","clone_url":"https://github.com/mogeb/ceph.git","svn_url":"https://github.com/mogeb/ceph","homepage":"http://ceph.com","size":298802,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ceph:master","ref":"master","sha":"15165f4de28d91ee78bb8503e3eabaf3dc9b4903","user":{"login":"ceph","id":1015767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTU3Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1015767?v=4","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":2310495,"node_id":"MDEwOlJlcG9zaXRvcnkyMzEwNDk1","name":"ceph","full_name":"ceph/ceph","private":false,"owner":{"login":"ceph","id":1015767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTU3Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1015767?v=4","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ceph/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":false,"url":"https://api.github.com/repos/ceph/ceph","forks_url":"https://api.github.com/repos/ceph/ceph/forks","keys_url":"https://api.github.com/repos/ceph/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/ceph/teams","hooks_url":"https://api.github.com/repos/ceph/ceph/hooks","issue_events_url":"https://api.github.com/repos/ceph/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/ceph/events","assignees_url":"https://api.github.com/repos/ceph/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/ceph/tags","blobs_url":"https://api.github.com/repos/ceph/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/ceph/languages","stargazers_url":"https://api.github.com/repos/ceph/ceph/stargazers","contributors_url":"https://api.github.com/repos/ceph/ceph/contributors","subscribers_url":"https://api.github.com/repos/ceph/ceph/subscribers","subscription_url":"https://api.github.com/repos/ceph/ceph/subscription","commits_url":"https://api.github.com/repos/ceph/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/ceph/merges","archive_url":"https://api.github.com/repos/ceph/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/ceph/downloads","issues_url":"https://api.github.com/repos/ceph/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/ceph/labels{/name}","releases_url":"https://api.github.com/repos/ceph/ceph/releases{/id}","deployments_url":"https://api.github.com/repos/ceph/ceph/deployments","created_at":"2011-09-01T21:41:26Z","updated_at":"2018-09-28T18:19:06Z","pushed_at":"2018-09-28T21:54:41Z","git_url":"git://github.com/ceph/ceph.git","ssh_url":"git@github.com:ceph/ceph.git","clone_url":"https://github.com/ceph/ceph.git","svn_url":"https://github.com/ceph/ceph","homepage":"http://ceph.com","size":315467,"stargazers_count":5124,"watchers_count":5124,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2654,"mirror_url":null,"archived":false,"open_issues_count":746,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2654,"open_issues":746,"watchers":5124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph/pulls/24270"},"html":{"href":"https://github.com/ceph/ceph/pull/24270"},"issue":{"href":"https://api.github.com/repos/ceph/ceph/issues/24270"},"comments":{"href":"https://api.github.com/repos/ceph/ceph/issues/24270/comments"},"review_comments":{"href":"https://api.github.com/repos/ceph/ceph/pulls/24270/comments"},"review_comment":{"href":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceph/ceph/pulls/24270/commits"},"statuses":{"href":"https://api.github.com/repos/ceph/ceph/statuses/96f3870be2d969215cb30f6fc4af67535af55b97"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"batrick"}}