{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/69129130","id":69129130,"diff_hunk":"@@ -0,0 +1,251 @@\n+/*\n+ * Licensed to Elasticsearch under one or more contributor\n+ * license agreements. See the NOTICE file distributed with\n+ * this work for additional information regarding copyright\n+ * ownership. Elasticsearch licenses this file to you under\n+ * the Apache License, Version 2.0 (the \"License\"); you may\n+ * not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+package org.elasticsearch.index.shard;\n+\n+import org.elasticsearch.action.support.PlainActionFuture;\n+import org.elasticsearch.common.lease.Releasable;\n+import org.elasticsearch.test.ESTestCase;\n+import org.elasticsearch.threadpool.TestThreadPool;\n+import org.elasticsearch.threadpool.ThreadPool;\n+import org.junit.AfterClass;\n+import org.junit.Before;\n+import org.junit.BeforeClass;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.concurrent.CountDownLatch;\n+import java.util.concurrent.ExecutionException;\n+import java.util.concurrent.TimeUnit;\n+import java.util.concurrent.TimeoutException;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+\n+import static org.hamcrest.Matchers.equalTo;\n+\n+public class IndexShardOperationsLockTests extends ESTestCase {\n+\n+    private static ThreadPool threadPool;\n+\n+    private IndexShardOperationsLock block;\n+\n+    @BeforeClass\n+    public static void setupThreadPool() {\n+        threadPool = new TestThreadPool(\"IndexShardOperationsLockTests\");\n+    }\n+\n+    @AfterClass\n+    public static void shutdownThreadPool() {\n+        ThreadPool.terminate(threadPool, 30, TimeUnit.SECONDS);\n+        threadPool = null;\n+    }\n+\n+    @Before\n+    public void createIndexShardOperationsLock() {\n+         block = new IndexShardOperationsLock(logger, threadPool);\n+    }\n+\n+    public void testAllOperationsInvoked() throws InterruptedException, TimeoutException, ExecutionException {\n+        IndexShardOperationsLock block = new IndexShardOperationsLock(logger, threadPool);\n+        int numThreads = 10;\n+\n+        List<PlainActionFuture<Releasable>> futures = new ArrayList<>();\n+        List<Thread> operationThreads = new ArrayList<>();\n+        CountDownLatch latch = new CountDownLatch(numThreads / 2);\n+        for (int i = 0; i < numThreads; i++) {\n+            PlainActionFuture<Releasable> future = new PlainActionFuture<>();\n+            Thread thread = new Thread() {\n+                public void run() {\n+                    latch.countDown();\n+                    block.acquire(future, ThreadPool.Names.GENERIC, true);\n+                }\n+            };\n+            futures.add(future);\n+            operationThreads.add(thread);\n+        }\n+\n+        AtomicBoolean successFullyBlocked = new AtomicBoolean();\n+\n+\n+        boolean blockingThreadThrowsException = randomBoolean();\n+        Thread blockingThread = new Thread() {\n+            public void run() {\n+                final IndexShardClosedException exception = new IndexShardClosedException(new ShardId(\"blubb\", \"id\", 0));\n+                try {\n+                    latch.await();\n+                    block.blockOperations(1, TimeUnit.MINUTES, () -> {\n+                        successFullyBlocked.set(true);\n+                        if (blockingThreadThrowsException) {\n+                            throw exception;\n+                        }\n+                    });\n+                } catch (Exception e) {\n+                    if (e != exception) {\n+                        throw new RuntimeException(e);\n+                    }\n+                }\n+            }\n+        };\n+\n+        blockingThread.start();\n+\n+        for (Thread thread : operationThreads) {\n+            thread.start();\n+        }\n+\n+        for (PlainActionFuture<Releasable> future : futures) {\n+            Releasable releasable = future.get(1, TimeUnit.MINUTES);\n+            assertNotNull(releasable);\n+            releasable.close();\n+        }\n+\n+        for (Thread thread : operationThreads) {\n+            thread.join();\n+        }\n+\n+        blockingThread.join();\n+\n+        assertTrue(successFullyBlocked.get());\n+    }\n+\n+    public void testFailureToBlockTwice() throws InterruptedException {\n+        CountDownLatch releaseBlock = new CountDownLatch(1);\n+        Thread blockingThread = blockAndWait(releaseBlock);\n+\n+        expectThrows(IllegalStateException.class, () -> block.blockOperations(1, TimeUnit.MINUTES, () -> {}));\n+\n+        releaseBlock.countDown();\n+        blockingThread.join();\n+    }\n+\n+    public void testOperationsInvokedImmediatelyIfNoBlock() throws ExecutionException, InterruptedException {\n+        PlainActionFuture<Releasable> future = new PlainActionFuture<>();\n+        block.acquire(future, ThreadPool.Names.GENERIC, true);\n+        assertTrue(future.isDone());\n+        future.get().close();\n+    }\n+\n+    public void testOperationsDelayedIfBlock() throws ExecutionException, InterruptedException, TimeoutException {\n+        CountDownLatch releaseBlock = new CountDownLatch(1);\n+        Thread blockingThread = blockAndWait(releaseBlock);\n+\n+        PlainActionFuture<Releasable> future = new PlainActionFuture<>();\n+        block.acquire(future, ThreadPool.Names.GENERIC, true);\n+        assertFalse(future.isDone());\n+\n+        releaseBlock.countDown();\n+\n+        future.get(1, TimeUnit.MINUTES).close();\n+\n+        blockingThread.join();\n+    }\n+\n+    protected Thread blockAndWait(final CountDownLatch releaseBlock) throws InterruptedException {\n+        CountDownLatch blockAcquired = new CountDownLatch(1);\n+        Thread blockingThread = new Thread() {\n+            public void run() {\n+                try {\n+                    block.blockOperations(1, TimeUnit.MINUTES, () -> {\n+                        try {\n+                            blockAcquired.countDown();\n+                            releaseBlock.await();\n+                        } catch (InterruptedException e) {\n+                            throw new RuntimeException();\n+                        }\n+                    });\n+                } catch (Exception e) {\n+                    throw new RuntimeException(e);\n+                }\n+            }\n+        };\n+\n+        blockingThread.start();\n+        blockAcquired.await();\n+        return blockingThread;\n+    }\n+\n+    public void testOperationsDelayedIfBlockFailure() throws ExecutionException, InterruptedException, TimeoutException {\n+        CountDownLatch blockAcquired = new CountDownLatch(1);\n+        CountDownLatch releaseBlock = new CountDownLatch(1);\n+\n+        final IndexShardClosedException exception = new IndexShardClosedException(new ShardId(\"blubb\", \"id\", 0));\n+        Thread blockingThread = new Thread() {\n+            public void run() {\n+                try {\n+                    block.blockOperations(1, TimeUnit.MINUTES, () -> {\n+                        try {\n+                            blockAcquired.countDown();\n+                            releaseBlock.await();\n+                            throw exception;\n+                        } catch (InterruptedException e) {\n+                            throw new RuntimeException();\n+                        }\n+                    });\n+                } catch (Exception e) {\n+                    if (e != exception) {\n+                        throw new RuntimeException(e);\n+                    }\n+                }\n+            }\n+        };\n+\n+        blockingThread.start();\n+        blockAcquired.await();\n+\n+        PlainActionFuture<Releasable> future = new PlainActionFuture<>();\n+        block.acquire(future, ThreadPool.Names.GENERIC, true);\n+        assertFalse(future.isDone());\n+\n+        releaseBlock.countDown();\n+\n+        future.get(1, TimeUnit.MINUTES).close();\n+\n+        blockingThread.join();\n+    }\n+\n+    public void testActiveOperationsCount() throws ExecutionException, InterruptedException {\n+        PlainActionFuture<Releasable> future1 = new PlainActionFuture<>();\n+        block.acquire(future1, ThreadPool.Names.GENERIC, true);\n+        assertTrue(future1.isDone());\n+        assertThat(block.getActiveOperationsCount(), equalTo(1));","path":"core/src/test/java/org/elasticsearch/index/shard/IndexShardOperationsLockTests.java","position":224,"original_position":224,"commit_id":"33d8dc0fdf5c1aa00d9e18b414201b7cfafb8968","original_commit_id":"33d8dc0fdf5c1aa00d9e18b414201b7cfafb8968","user":{"login":"bleskes","id":1006375,"avatar_url":"https://avatars.githubusercontent.com/u/1006375?v=3","gravatar_id":"","url":"https://api.github.com/users/bleskes","html_url":"https://github.com/bleskes","followers_url":"https://api.github.com/users/bleskes/followers","following_url":"https://api.github.com/users/bleskes/following{/other_user}","gists_url":"https://api.github.com/users/bleskes/gists{/gist_id}","starred_url":"https://api.github.com/users/bleskes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleskes/subscriptions","organizations_url":"https://api.github.com/users/bleskes/orgs","repos_url":"https://api.github.com/users/bleskes/repos","events_url":"https://api.github.com/users/bleskes/events{/privacy}","received_events_url":"https://api.github.com/users/bleskes/received_events","type":"User","site_admin":false},"body":"Oh. You need to explicitly close the op.","created_at":"2016-06-30T13:15:31Z","updated_at":"2016-06-30T13:15:31Z","html_url":"https://github.com/elastic/elasticsearch/pull/19013#discussion_r69129130","pull_request_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013","_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/69129130"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/19013#discussion_r69129130"},"pull_request":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013","id":74676253,"html_url":"https://github.com/elastic/elasticsearch/pull/19013","diff_url":"https://github.com/elastic/elasticsearch/pull/19013.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/19013.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19013","number":19013,"state":"open","locked":false,"title":"Non-blocking primary relocation hand-off","user":{"login":"ywelsch","id":3718355,"avatar_url":"https://avatars.githubusercontent.com/u/3718355?v=3","gravatar_id":"","url":"https://api.github.com/users/ywelsch","html_url":"https://github.com/ywelsch","followers_url":"https://api.github.com/users/ywelsch/followers","following_url":"https://api.github.com/users/ywelsch/following{/other_user}","gists_url":"https://api.github.com/users/ywelsch/gists{/gist_id}","starred_url":"https://api.github.com/users/ywelsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywelsch/subscriptions","organizations_url":"https://api.github.com/users/ywelsch/orgs","repos_url":"https://api.github.com/users/ywelsch/repos","events_url":"https://api.github.com/users/ywelsch/events{/privacy}","received_events_url":"https://api.github.com/users/ywelsch/received_events","type":"User","site_admin":false},"body":"Primary relocation and indexing concurrently can currently lead to a deadlock situation as indexing operations are blocked on a (bounded) thread pool during the hand-off phase between old and new primary. This PR replaces blocking of indexing operations by putting operations that cannot be executed during relocation hand-off in a queue to be executed once relocation completes.\r\n\r\nRelates to #18553, #15900.","created_at":"2016-06-21T20:05:48Z","updated_at":"2016-06-30T13:15:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"642fae93caf1a3d1bf7c26a753c8f6e306feda5d","assignee":{"login":"bleskes","id":1006375,"avatar_url":"https://avatars.githubusercontent.com/u/1006375?v=3","gravatar_id":"","url":"https://api.github.com/users/bleskes","html_url":"https://github.com/bleskes","followers_url":"https://api.github.com/users/bleskes/followers","following_url":"https://api.github.com/users/bleskes/following{/other_user}","gists_url":"https://api.github.com/users/bleskes/gists{/gist_id}","starred_url":"https://api.github.com/users/bleskes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleskes/subscriptions","organizations_url":"https://api.github.com/users/bleskes/orgs","repos_url":"https://api.github.com/users/bleskes/repos","events_url":"https://api.github.com/users/bleskes/events{/privacy}","received_events_url":"https://api.github.com/users/bleskes/received_events","type":"User","site_admin":false},"assignees":[{"login":"bleskes","id":1006375,"avatar_url":"https://avatars.githubusercontent.com/u/1006375?v=3","gravatar_id":"","url":"https://api.github.com/users/bleskes","html_url":"https://github.com/bleskes","followers_url":"https://api.github.com/users/bleskes/followers","following_url":"https://api.github.com/users/bleskes/following{/other_user}","gists_url":"https://api.github.com/users/bleskes/gists{/gist_id}","starred_url":"https://api.github.com/users/bleskes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleskes/subscriptions","organizations_url":"https://api.github.com/users/bleskes/orgs","repos_url":"https://api.github.com/users/bleskes/repos","events_url":"https://api.github.com/users/bleskes/events{/privacy}","received_events_url":"https://api.github.com/users/bleskes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19013/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/33d8dc0fdf5c1aa00d9e18b414201b7cfafb8968","head":{"label":"ywelsch:fix/relocation-handoff-deadlock","ref":"fix/relocation-handoff-deadlock","sha":"33d8dc0fdf5c1aa00d9e18b414201b7cfafb8968","user":{"login":"ywelsch","id":3718355,"avatar_url":"https://avatars.githubusercontent.com/u/3718355?v=3","gravatar_id":"","url":"https://api.github.com/users/ywelsch","html_url":"https://github.com/ywelsch","followers_url":"https://api.github.com/users/ywelsch/followers","following_url":"https://api.github.com/users/ywelsch/following{/other_user}","gists_url":"https://api.github.com/users/ywelsch/gists{/gist_id}","starred_url":"https://api.github.com/users/ywelsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywelsch/subscriptions","organizations_url":"https://api.github.com/users/ywelsch/orgs","repos_url":"https://api.github.com/users/ywelsch/repos","events_url":"https://api.github.com/users/ywelsch/events{/privacy}","received_events_url":"https://api.github.com/users/ywelsch/received_events","type":"User","site_admin":false},"repo":{"id":43299643,"name":"elasticsearch","full_name":"ywelsch/elasticsearch","owner":{"login":"ywelsch","id":3718355,"avatar_url":"https://avatars.githubusercontent.com/u/3718355?v=3","gravatar_id":"","url":"https://api.github.com/users/ywelsch","html_url":"https://github.com/ywelsch","followers_url":"https://api.github.com/users/ywelsch/followers","following_url":"https://api.github.com/users/ywelsch/following{/other_user}","gists_url":"https://api.github.com/users/ywelsch/gists{/gist_id}","starred_url":"https://api.github.com/users/ywelsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywelsch/subscriptions","organizations_url":"https://api.github.com/users/ywelsch/orgs","repos_url":"https://api.github.com/users/ywelsch/repos","events_url":"https://api.github.com/users/ywelsch/events{/privacy}","received_events_url":"https://api.github.com/users/ywelsch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ywelsch/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/ywelsch/elasticsearch","forks_url":"https://api.github.com/repos/ywelsch/elasticsearch/forks","keys_url":"https://api.github.com/repos/ywelsch/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ywelsch/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ywelsch/elasticsearch/teams","hooks_url":"https://api.github.com/repos/ywelsch/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/ywelsch/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/ywelsch/elasticsearch/events","assignees_url":"https://api.github.com/repos/ywelsch/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/ywelsch/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/ywelsch/elasticsearch/tags","blobs_url":"https://api.github.com/repos/ywelsch/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ywelsch/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ywelsch/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/ywelsch/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ywelsch/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/ywelsch/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/ywelsch/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/ywelsch/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/ywelsch/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/ywelsch/elasticsearch/subscription","commits_url":"https://api.github.com/repos/ywelsch/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/ywelsch/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/ywelsch/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/ywelsch/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/ywelsch/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/ywelsch/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ywelsch/elasticsearch/merges","archive_url":"https://api.github.com/repos/ywelsch/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ywelsch/elasticsearch/downloads","issues_url":"https://api.github.com/repos/ywelsch/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/ywelsch/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/ywelsch/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/ywelsch/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ywelsch/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/ywelsch/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/ywelsch/elasticsearch/deployments","created_at":"2015-09-28T12:30:36Z","updated_at":"2015-09-28T12:31:12Z","pushed_at":"2016-06-29T13:02:39Z","git_url":"git://github.com/ywelsch/elasticsearch.git","ssh_url":"git@github.com:ywelsch/elasticsearch.git","clone_url":"https://github.com/ywelsch/elasticsearch.git","svn_url":"https://github.com/ywelsch/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":229680,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"ea206237e3d8aa6e9b37a7063e6a2782b3e3cc5c","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"name":"elasticsearch","full_name":"elastic/elasticsearch","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2016-06-30T11:22:49Z","pushed_at":"2016-06-30T13:07:19Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":336232,"stargazers_count":17139,"watchers_count":17139,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5807,"mirror_url":null,"open_issues_count":1077,"forks":5807,"open_issues":1077,"watchers":17139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/19013"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/19013"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/19013/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19013/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/33d8dc0fdf5c1aa00d9e18b414201b7cfafb8968"}}}}
{"actor":{"display_login":"bleskes"}}