{"action":"closed","number":103,"pull_request":{"url":"https://api.github.com/repos/mesos/kafka/pulls/103","id":42807306,"html_url":"https://github.com/mesos/kafka/pull/103","diff_url":"https://github.com/mesos/kafka/pull/103.diff","patch_url":"https://github.com/mesos/kafka/pull/103.patch","issue_url":"https://api.github.com/repos/mesos/kafka/issues/103","number":103,"state":"closed","locked":false,"title":"role_specific_resources","user":{"login":"dmitrypekar","id":2434593,"avatar_url":"https://avatars.githubusercontent.com/u/2434593?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrypekar","html_url":"https://github.com/dmitrypekar","followers_url":"https://api.github.com/users/dmitrypekar/followers","following_url":"https://api.github.com/users/dmitrypekar/following{/other_user}","gists_url":"https://api.github.com/users/dmitrypekar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrypekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrypekar/subscriptions","organizations_url":"https://api.github.com/users/dmitrypekar/orgs","repos_url":"https://api.github.com/users/dmitrypekar/repos","events_url":"https://api.github.com/users/dmitrypekar/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrypekar/received_events","type":"User","site_admin":false},"body":"This is PR that fixes issue: https://github.com/mesos/kafka/issues/98\r\nAfter merging kafka-mesos:\r\n- would be able to use role-specific and shared resources from offer;\r\n- role-specific resources has priority;\r\n\r\nExample suppose we have `broker{ cpus:0.5, mem:100 }`\r\nWe got offer `offer{ cpus:1, cpus(kafka):0.4, mem:100, mem(kafka):70, ports:1000 }`\r\nIt that case Scheduler would create  `task { cpus:0.6, cpus(kafka):0.4, mem:30, mem(kafka):70, port:1000 }`.\r\n\r\nPlease review & merge.\r\n","created_at":"2015-08-19T12:17:31Z","updated_at":"2015-08-19T14:14:06Z","closed_at":"2015-08-19T14:14:06Z","merged_at":"2015-08-19T14:14:06Z","merge_commit_sha":"f6baa59dfbf06fe6e124d40b895790d255642640","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesos/kafka/pulls/103/commits","review_comments_url":"https://api.github.com/repos/mesos/kafka/pulls/103/comments","review_comment_url":"https://api.github.com/repos/mesos/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesos/kafka/issues/103/comments","statuses_url":"https://api.github.com/repos/mesos/kafka/statuses/df9bd94f8c70ffa2c471dc84a3779f581120020d","head":{"label":"mesos:role_specific_resources","ref":"role_specific_resources","sha":"df9bd94f8c70ffa2c471dc84a3779f581120020d","user":{"login":"mesos","id":229272,"avatar_url":"https://avatars.githubusercontent.com/u/229272?v=3","gravatar_id":"","url":"https://api.github.com/users/mesos","html_url":"https://github.com/mesos","followers_url":"https://api.github.com/users/mesos/followers","following_url":"https://api.github.com/users/mesos/following{/other_user}","gists_url":"https://api.github.com/users/mesos/gists{/gist_id}","starred_url":"https://api.github.com/users/mesos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesos/subscriptions","organizations_url":"https://api.github.com/users/mesos/orgs","repos_url":"https://api.github.com/users/mesos/repos","events_url":"https://api.github.com/users/mesos/events{/privacy}","received_events_url":"https://api.github.com/users/mesos/received_events","type":"Organization","site_admin":false},"repo":{"id":30391466,"name":"kafka","full_name":"mesos/kafka","owner":{"login":"mesos","id":229272,"avatar_url":"https://avatars.githubusercontent.com/u/229272?v=3","gravatar_id":"","url":"https://api.github.com/users/mesos","html_url":"https://github.com/mesos","followers_url":"https://api.github.com/users/mesos/followers","following_url":"https://api.github.com/users/mesos/following{/other_user}","gists_url":"https://api.github.com/users/mesos/gists{/gist_id}","starred_url":"https://api.github.com/users/mesos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesos/subscriptions","organizations_url":"https://api.github.com/users/mesos/orgs","repos_url":"https://api.github.com/users/mesos/repos","events_url":"https://api.github.com/users/mesos/events{/privacy}","received_events_url":"https://api.github.com/users/mesos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesos/kafka","description":"Apache Kafka on Apache Mesos","fork":false,"url":"https://api.github.com/repos/mesos/kafka","forks_url":"https://api.github.com/repos/mesos/kafka/forks","keys_url":"https://api.github.com/repos/mesos/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesos/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesos/kafka/teams","hooks_url":"https://api.github.com/repos/mesos/kafka/hooks","issue_events_url":"https://api.github.com/repos/mesos/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/mesos/kafka/events","assignees_url":"https://api.github.com/repos/mesos/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/mesos/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/mesos/kafka/tags","blobs_url":"https://api.github.com/repos/mesos/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesos/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesos/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesos/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesos/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/mesos/kafka/languages","stargazers_url":"https://api.github.com/repos/mesos/kafka/stargazers","contributors_url":"https://api.github.com/repos/mesos/kafka/contributors","subscribers_url":"https://api.github.com/repos/mesos/kafka/subscribers","subscription_url":"https://api.github.com/repos/mesos/kafka/subscription","commits_url":"https://api.github.com/repos/mesos/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesos/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesos/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesos/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesos/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/mesos/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesos/kafka/merges","archive_url":"https://api.github.com/repos/mesos/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesos/kafka/downloads","issues_url":"https://api.github.com/repos/mesos/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/mesos/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/mesos/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/mesos/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesos/kafka/labels{/name}","releases_url":"https://api.github.com/repos/mesos/kafka/releases{/id}","created_at":"2015-02-06T02:48:02Z","updated_at":"2015-08-19T09:18:47Z","pushed_at":"2015-08-19T14:14:06Z","git_url":"git://github.com/mesos/kafka.git","ssh_url":"git@github.com:mesos/kafka.git","clone_url":"https://github.com/mesos/kafka.git","svn_url":"https://github.com/mesos/kafka","homepage":"","size":1186,"stargazers_count":145,"watchers_count":145,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":12,"forks":28,"open_issues":12,"watchers":145,"default_branch":"master"}},"base":{"label":"mesos:master","ref":"master","sha":"89189712c5c996cbd1ba719bb132358867825aa4","user":{"login":"mesos","id":229272,"avatar_url":"https://avatars.githubusercontent.com/u/229272?v=3","gravatar_id":"","url":"https://api.github.com/users/mesos","html_url":"https://github.com/mesos","followers_url":"https://api.github.com/users/mesos/followers","following_url":"https://api.github.com/users/mesos/following{/other_user}","gists_url":"https://api.github.com/users/mesos/gists{/gist_id}","starred_url":"https://api.github.com/users/mesos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesos/subscriptions","organizations_url":"https://api.github.com/users/mesos/orgs","repos_url":"https://api.github.com/users/mesos/repos","events_url":"https://api.github.com/users/mesos/events{/privacy}","received_events_url":"https://api.github.com/users/mesos/received_events","type":"Organization","site_admin":false},"repo":{"id":30391466,"name":"kafka","full_name":"mesos/kafka","owner":{"login":"mesos","id":229272,"avatar_url":"https://avatars.githubusercontent.com/u/229272?v=3","gravatar_id":"","url":"https://api.github.com/users/mesos","html_url":"https://github.com/mesos","followers_url":"https://api.github.com/users/mesos/followers","following_url":"https://api.github.com/users/mesos/following{/other_user}","gists_url":"https://api.github.com/users/mesos/gists{/gist_id}","starred_url":"https://api.github.com/users/mesos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesos/subscriptions","organizations_url":"https://api.github.com/users/mesos/orgs","repos_url":"https://api.github.com/users/mesos/repos","events_url":"https://api.github.com/users/mesos/events{/privacy}","received_events_url":"https://api.github.com/users/mesos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesos/kafka","description":"Apache Kafka on Apache Mesos","fork":false,"url":"https://api.github.com/repos/mesos/kafka","forks_url":"https://api.github.com/repos/mesos/kafka/forks","keys_url":"https://api.github.com/repos/mesos/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesos/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesos/kafka/teams","hooks_url":"https://api.github.com/repos/mesos/kafka/hooks","issue_events_url":"https://api.github.com/repos/mesos/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/mesos/kafka/events","assignees_url":"https://api.github.com/repos/mesos/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/mesos/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/mesos/kafka/tags","blobs_url":"https://api.github.com/repos/mesos/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesos/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesos/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesos/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesos/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/mesos/kafka/languages","stargazers_url":"https://api.github.com/repos/mesos/kafka/stargazers","contributors_url":"https://api.github.com/repos/mesos/kafka/contributors","subscribers_url":"https://api.github.com/repos/mesos/kafka/subscribers","subscription_url":"https://api.github.com/repos/mesos/kafka/subscription","commits_url":"https://api.github.com/repos/mesos/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesos/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesos/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesos/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesos/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/mesos/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesos/kafka/merges","archive_url":"https://api.github.com/repos/mesos/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesos/kafka/downloads","issues_url":"https://api.github.com/repos/mesos/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/mesos/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/mesos/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/mesos/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesos/kafka/labels{/name}","releases_url":"https://api.github.com/repos/mesos/kafka/releases{/id}","created_at":"2015-02-06T02:48:02Z","updated_at":"2015-08-19T09:18:47Z","pushed_at":"2015-08-19T14:14:06Z","git_url":"git://github.com/mesos/kafka.git","ssh_url":"git@github.com:mesos/kafka.git","clone_url":"https://github.com/mesos/kafka.git","svn_url":"https://github.com/mesos/kafka","homepage":"","size":1186,"stargazers_count":145,"watchers_count":145,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":12,"forks":28,"open_issues":12,"watchers":145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesos/kafka/pulls/103"},"html":{"href":"https://github.com/mesos/kafka/pull/103"},"issue":{"href":"https://api.github.com/repos/mesos/kafka/issues/103"},"comments":{"href":"https://api.github.com/repos/mesos/kafka/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/mesos/kafka/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/mesos/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesos/kafka/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/mesos/kafka/statuses/df9bd94f8c70ffa2c471dc84a3779f581120020d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"joestein","id":115151,"avatar_url":"https://avatars.githubusercontent.com/u/115151?v=3","gravatar_id":"","url":"https://api.github.com/users/joestein","html_url":"https://github.com/joestein","followers_url":"https://api.github.com/users/joestein/followers","following_url":"https://api.github.com/users/joestein/following{/other_user}","gists_url":"https://api.github.com/users/joestein/gists{/gist_id}","starred_url":"https://api.github.com/users/joestein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joestein/subscriptions","organizations_url":"https://api.github.com/users/joestein/orgs","repos_url":"https://api.github.com/users/joestein/repos","events_url":"https://api.github.com/users/joestein/events{/privacy}","received_events_url":"https://api.github.com/users/joestein/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":269,"deletions":133,"changed_files":6}}