{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/comments/178327090","pull_request_review_id":108376198,"id":178327090,"diff_hunk":"@@ -0,0 +1,269 @@\n+package com.mesosphere.sdk.framework;\n+\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.List;\n+import java.util.Set;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+import java.util.stream.Collectors;\n+\n+import org.apache.mesos.Protos;\n+import org.apache.mesos.Scheduler;\n+import org.apache.mesos.SchedulerDriver;\n+import org.slf4j.Logger;\n+\n+import com.google.common.annotations.VisibleForTesting;\n+import com.google.protobuf.TextFormat;\n+import com.mesosphere.sdk.offer.LoggingUtils;\n+import com.mesosphere.sdk.offer.ResourceUtils;\n+import com.mesosphere.sdk.offer.evaluate.placement.IsLocalRegionRule;\n+import com.mesosphere.sdk.reconciliation.Reconciler;\n+import com.mesosphere.sdk.scheduler.AbstractScheduler;\n+import com.mesosphere.sdk.scheduler.Metrics;\n+import com.mesosphere.sdk.scheduler.SchedulerConfig;\n+import com.mesosphere.sdk.scheduler.SchedulerErrorCode;\n+import com.mesosphere.sdk.scheduler.SchedulerUtils;\n+import com.mesosphere.sdk.scheduler.TaskCleaner;\n+import com.mesosphere.sdk.state.FrameworkStore;\n+import com.mesosphere.sdk.state.StateStore;\n+\n+/**\n+ * Implementation of Mesos' {@link Scheduler} interface. There should only be one of these per Scheduler process.\n+ * Received messages are forwarded to the provided {@link MesosEventClient} instance.\n+ */\n+public class FrameworkScheduler implements Scheduler {\n+\n+    private static final Logger LOGGER = LoggingUtils.getLogger(FrameworkScheduler.class);\n+\n+    /**\n+     * Mesos may call registered() multiple times in the lifespan of a Scheduler process, specifically when there's\n+     * master re-election. Avoid performing initialization multiple times, which would cause queues to be stuck.\n+     */\n+    private final AtomicBoolean isRegisterStarted = new AtomicBoolean(false);\n+\n+    /**\n+     * Tracks whether the API Server has entered a started state. We avoid launching tasks until after the API server is\n+     * started, because when tasks launch they typically require access to ArtifactResource for config templates.\n+     */\n+    private final AtomicBoolean readyToAcceptOffers = new AtomicBoolean(false);\n+\n+    private final Set<String> frameworkRolesWhitelist;\n+    private final FrameworkStore frameworkStore;\n+    private final AbstractScheduler abstractScheduler;\n+    private final OfferProcessor offerProcessor;\n+\n+    private final StateStore stateStore;\n+    private TaskCleaner taskCleaner;\n+    private boolean multithreaded = true;\n+\n+    public FrameworkScheduler(\n+            Set<String> frameworkRolesWhitelist,\n+            SchedulerConfig schedulerConfig,\n+            StateStore stateStore,\n+            FrameworkStore frameworkStore,\n+            AbstractScheduler abstractScheduler) {\n+        this(\n+                frameworkRolesWhitelist,\n+                frameworkStore,\n+                abstractScheduler,\n+                new OfferProcessor(abstractScheduler, stateStore),\n+                stateStore);\n+    }\n+\n+    @VisibleForTesting\n+    FrameworkScheduler(\n+            Set<String> frameworkRolesWhitelist,\n+            FrameworkStore frameworkStore,\n+            AbstractScheduler abstractScheduler,\n+            OfferProcessor offerProcessor,\n+            StateStore stateStore) {\n+        this.frameworkRolesWhitelist = frameworkRolesWhitelist;\n+        this.frameworkStore = frameworkStore;\n+        this.abstractScheduler = abstractScheduler;\n+        this.offerProcessor = offerProcessor;\n+        this.stateStore = stateStore;\n+    }\n+\n+    /**\n+     * Notifies this instance that the API server has been initialized. All offers are declined until this is called.\n+     *\n+     * @return {@code this}\n+     */\n+    public FrameworkScheduler setReadyToAcceptOffers() {\n+        readyToAcceptOffers.set(true);\n+        return this;\n+    }\n+\n+    /**\n+     * Disables multithreading for tests. For this to take effect, it must be invoked before the framework has\n+     * registered.\n+     *\n+     * @return {@code this}\n+     */\n+    @VisibleForTesting\n+    public FrameworkScheduler disableThreading() {\n+        offerProcessor.disableThreading();\n+        this.multithreaded = false;\n+        return this;\n+    }\n+\n+    @Override\n+    public void registered(SchedulerDriver driver, Protos.FrameworkID frameworkId, Protos.MasterInfo masterInfo) {\n+        if (isRegisterStarted.getAndSet(true)) {\n+            // This may occur as the result of a master election.\n+            LOGGER.info(\"Already registered, calling reregistered()\");\n+            reregistered(driver, masterInfo);\n+            return;\n+        }\n+\n+        Driver.setDriver(driver);\n+        abstractScheduler.registeredWithMesos();\n+\n+        LOGGER.info(\"Registered framework with frameworkId: {}\", frameworkId.getValue());\n+        this.taskCleaner = new TaskCleaner(stateStore, multithreaded);\n+\n+        try {\n+            frameworkStore.storeFrameworkId(frameworkId);\n+        } catch (Exception e) {\n+            LOGGER.error(String.format(\n+                    \"Unable to store registered framework ID '%s'\", frameworkId.getValue()), e);\n+            SchedulerUtils.hardExit(SchedulerErrorCode.REGISTRATION_FAILURE);\n+        }\n+\n+        postRegister(driver, masterInfo);\n+\n+        offerProcessor.start();\n+    }\n+\n+    @Override\n+    public void reregistered(SchedulerDriver driver, Protos.MasterInfo masterInfo) {\n+        LOGGER.info(\"Re-registered with master: {}\", TextFormat.shortDebugString(masterInfo));\n+        Driver.setDriver(driver);\n+        postRegister(driver, masterInfo);\n+    }\n+\n+    private void postRegister(SchedulerDriver driver, Protos.MasterInfo masterInfo) {\n+        // Task reconciliation should be (re)started on all (re-)registrations.\n+        Reconciler reconciler = offerProcessor.getReconciler();\n+        reconciler.start();\n+        reconciler.reconcile();\n+        if (masterInfo.hasDomain()) {\n+            IsLocalRegionRule.setLocalDomain(masterInfo.getDomain());\n+        }\n+    }\n+\n+    @Override\n+    public void resourceOffers(SchedulerDriver driver, List<Protos.Offer> offers) {\n+        Metrics.incrementReceivedOffers(offers.size());\n+\n+        if (!readyToAcceptOffers.get()) {\n+            LOGGER.info(\"Declining {} offer{}: Waiting for API Server to start.\",\n+                    offers.size(), offers.size() == 1 ? \"\" : \"s\");\n+            OfferProcessor.declineShort(offers);\n+            return;\n+        }\n+\n+        // Filter any bad resources from the offers before they even enter processing.\n+        offerProcessor.enqueue(offers.stream()\n+                .map(offer -> filterBadResources(offer))\n+                .collect(Collectors.toList()));\n+    }\n+\n+    /**\n+     * Before we forward the offers to the processor queue, lets filter out resources that don't belong to us.\n+     * Resources can look like one of the following:\n+     * 1. Dynamic against our-role or refined-role/our-role (belongs to us)\n+     * 2. Static against refined-role (we can reserve against it)","path":"sdk/scheduler/src/main/java/com/mesosphere/sdk/framework/FrameworkScheduler.java","position":176,"original_position":176,"commit_id":"3c6ce26d66310bbead4698397e2b2b3fec7376b4","original_commit_id":"3c6ce26d66310bbead4698397e2b2b3fec7376b4","user":{"login":"gabrielhartmann","id":567111,"avatar_url":"https://avatars1.githubusercontent.com/u/567111?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielhartmann","html_url":"https://github.com/gabrielhartmann","followers_url":"https://api.github.com/users/gabrielhartmann/followers","following_url":"https://api.github.com/users/gabrielhartmann/following{/other_user}","gists_url":"https://api.github.com/users/gabrielhartmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielhartmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielhartmann/subscriptions","organizations_url":"https://api.github.com/users/gabrielhartmann/orgs","repos_url":"https://api.github.com/users/gabrielhartmann/repos","events_url":"https://api.github.com/users/gabrielhartmann/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielhartmann/received_events","type":"User","site_admin":false},"body":"`refined` --> `pre-reserved`","created_at":"2018-03-30T16:55:36Z","updated_at":"2018-03-30T16:55:36Z","html_url":"https://github.com/mesosphere/dcos-commons/pull/2442#discussion_r178327090","pull_request_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/comments/178327090"},"html":{"href":"https://github.com/mesosphere/dcos-commons/pull/2442#discussion_r178327090"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442","id":178472051,"html_url":"https://github.com/mesosphere/dcos-commons/pull/2442","diff_url":"https://github.com/mesosphere/dcos-commons/pull/2442.diff","patch_url":"https://github.com/mesosphere/dcos-commons/pull/2442.patch","issue_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/2442","number":2442,"state":"open","locked":false,"title":"INFINITY-3410 De-monolith AbstractScheduler, move things into fwk pkg, filter resource roles up-front","user":{"login":"nickbp","id":35933,"avatar_url":"https://avatars2.githubusercontent.com/u/35933?v=4","gravatar_id":"","url":"https://api.github.com/users/nickbp","html_url":"https://github.com/nickbp","followers_url":"https://api.github.com/users/nickbp/followers","following_url":"https://api.github.com/users/nickbp/following{/other_user}","gists_url":"https://api.github.com/users/nickbp/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbp/subscriptions","organizations_url":"https://api.github.com/users/nickbp/orgs","repos_url":"https://api.github.com/users/nickbp/repos","events_url":"https://api.github.com/users/nickbp/events{/privacy}","received_events_url":"https://api.github.com/users/nickbp/received_events","type":"User","site_admin":false},"body":"- Moves per-framework classes into `framework` package. Future PRs will make changes to them at this new location.\r\n- Breaks out offer queueing/processing from `AbstractScheduler` into separate `OfferProcessor` class\r\n- Breaks out Mesos `Scheduler` implementation from `AbstractScheduler` into separate `FrameworkScheduler` class\r\n- Moves filtering of unknown resources upstream. Now they're filtered up-front in `FrameworkScheduler`","created_at":"2018-03-30T00:31:53Z","updated_at":"2018-03-30T16:55:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbfa802549d391bba4aea508ec18a43a7f2e2adb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442/commits","review_comments_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442/comments","review_comment_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/2442/comments","statuses_url":"https://api.github.com/repos/mesosphere/dcos-commons/statuses/3c6ce26d66310bbead4698397e2b2b3fec7376b4","head":{"label":"mesosphere:upstream-reconcilers","ref":"upstream-reconcilers","sha":"3c6ce26d66310bbead4698397e2b2b3fec7376b4","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars0.githubusercontent.com/u/3458585?v=4","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":60286497,"name":"dcos-commons","full_name":"mesosphere/dcos-commons","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars0.githubusercontent.com/u/3458585?v=4","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/dcos-commons","description":"Simplifying stateful services","fork":false,"url":"https://api.github.com/repos/mesosphere/dcos-commons","forks_url":"https://api.github.com/repos/mesosphere/dcos-commons/forks","keys_url":"https://api.github.com/repos/mesosphere/dcos-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/dcos-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/dcos-commons/teams","hooks_url":"https://api.github.com/repos/mesosphere/dcos-commons/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/dcos-commons/events","assignees_url":"https://api.github.com/repos/mesosphere/dcos-commons/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/dcos-commons/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/dcos-commons/tags","blobs_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/dcos-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/dcos-commons/languages","stargazers_url":"https://api.github.com/repos/mesosphere/dcos-commons/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/dcos-commons/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/dcos-commons/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/dcos-commons/subscription","commits_url":"https://api.github.com/repos/mesosphere/dcos-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/dcos-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/dcos-commons/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/dcos-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/dcos-commons/merges","archive_url":"https://api.github.com/repos/mesosphere/dcos-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/dcos-commons/downloads","issues_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/dcos-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/dcos-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/dcos-commons/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/dcos-commons/releases{/id}","deployments_url":"https://api.github.com/repos/mesosphere/dcos-commons/deployments","created_at":"2016-06-02T18:09:08Z","updated_at":"2018-03-29T18:25:52Z","pushed_at":"2018-03-30T14:07:35Z","git_url":"git://github.com/mesosphere/dcos-commons.git","ssh_url":"git@github.com:mesosphere/dcos-commons.git","clone_url":"https://github.com/mesosphere/dcos-commons.git","svn_url":"https://github.com/mesosphere/dcos-commons","homepage":"https://mesosphere.github.io/dcos-commons/","size":61867,"stargazers_count":120,"watchers_count":120,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":132,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":132,"open_issues":67,"watchers":120,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"db6a5713d83f21bde69911eea8c025b7173c38b7","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars0.githubusercontent.com/u/3458585?v=4","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":60286497,"name":"dcos-commons","full_name":"mesosphere/dcos-commons","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars0.githubusercontent.com/u/3458585?v=4","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/dcos-commons","description":"Simplifying stateful services","fork":false,"url":"https://api.github.com/repos/mesosphere/dcos-commons","forks_url":"https://api.github.com/repos/mesosphere/dcos-commons/forks","keys_url":"https://api.github.com/repos/mesosphere/dcos-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/dcos-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/dcos-commons/teams","hooks_url":"https://api.github.com/repos/mesosphere/dcos-commons/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/dcos-commons/events","assignees_url":"https://api.github.com/repos/mesosphere/dcos-commons/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/dcos-commons/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/dcos-commons/tags","blobs_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/dcos-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/dcos-commons/languages","stargazers_url":"https://api.github.com/repos/mesosphere/dcos-commons/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/dcos-commons/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/dcos-commons/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/dcos-commons/subscription","commits_url":"https://api.github.com/repos/mesosphere/dcos-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/dcos-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/dcos-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/dcos-commons/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/dcos-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/dcos-commons/merges","archive_url":"https://api.github.com/repos/mesosphere/dcos-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/dcos-commons/downloads","issues_url":"https://api.github.com/repos/mesosphere/dcos-commons/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/dcos-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/dcos-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/dcos-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/dcos-commons/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/dcos-commons/releases{/id}","deployments_url":"https://api.github.com/repos/mesosphere/dcos-commons/deployments","created_at":"2016-06-02T18:09:08Z","updated_at":"2018-03-29T18:25:52Z","pushed_at":"2018-03-30T14:07:35Z","git_url":"git://github.com/mesosphere/dcos-commons.git","ssh_url":"git@github.com:mesosphere/dcos-commons.git","clone_url":"https://github.com/mesosphere/dcos-commons.git","svn_url":"https://github.com/mesosphere/dcos-commons","homepage":"https://mesosphere.github.io/dcos-commons/","size":61867,"stargazers_count":120,"watchers_count":120,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":132,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":132,"open_issues":67,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442"},"html":{"href":"https://github.com/mesosphere/dcos-commons/pull/2442"},"issue":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/issues/2442"},"comments":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/issues/2442/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/pulls/2442/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/dcos-commons/statuses/3c6ce26d66310bbead4698397e2b2b3fec7376b4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gabrielhartmann"}}