{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/22283","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22283/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22283/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22283/events","html_url":"https://github.com/elastic/elasticsearch/pull/22283","id":196693068,"number":22283,"title":"[TEST] Improve ESSingleNodeTestCase repeatability","user":{"login":"javanna","id":832460,"avatar_url":"https://avatars.githubusercontent.com/u/832460?v=3","gravatar_id":"","url":"https://api.github.com/users/javanna","html_url":"https://github.com/javanna","followers_url":"https://api.github.com/users/javanna/followers","following_url":"https://api.github.com/users/javanna/following{/other_user}","gists_url":"https://api.github.com/users/javanna/gists{/gist_id}","starred_url":"https://api.github.com/users/javanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javanna/subscriptions","organizations_url":"https://api.github.com/users/javanna/orgs","repos_url":"https://api.github.com/users/javanna/repos","events_url":"https://api.github.com/users/javanna/events{/privacy}","received_events_url":"https://api.github.com/users/javanna/received_events","type":"User","site_admin":false},"labels":[{"id":94283388,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc","default":false},{"id":60445228,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/test","name":"test","color":"5319e7","default":false},{"id":492594588,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v5.1.2","name":"v5.1.2","color":"dddddd","default":false},{"id":486905930,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v5.2.0","name":"v5.2.0","color":"dddddd","default":false},{"id":334286612,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.0.0","name":"v6.0.0","color":"dddddd","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-20T14:57:13Z","updated_at":"2016-12-21T12:34:31Z","closed_at":"2016-12-21T10:44:25Z","pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/22283","html_url":"https://github.com/elastic/elasticsearch/pull/22283","diff_url":"https://github.com/elastic/elasticsearch/pull/22283.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/22283.patch"},"body":"If we conditionally do random things, e.g. initialize a node only after the first test, we have to make sure that we unconditionally create a new seed calling `random.nextLong()`, then initialize the node under a private randomness context. This makes sure that any random usage through `Randomness.get()` will retrieve the proper random instance through `RandomizedContext.current().getRandom()`. When running under private randomness, the context  will return the `Random` instance that was created with the provided seed (forked from the main random instance) rather than the main `Random` that's exposed to tests as well. Otherwise tests become non repeatable because that initialization part happens only before the first executed test."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/268512685","html_url":"https://github.com/elastic/elasticsearch/pull/22283#issuecomment-268512685","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22283","id":268512685,"user":{"login":"jasontedor","id":4744941,"avatar_url":"https://avatars.githubusercontent.com/u/4744941?v=3","gravatar_id":"","url":"https://api.github.com/users/jasontedor","html_url":"https://github.com/jasontedor","followers_url":"https://api.github.com/users/jasontedor/followers","following_url":"https://api.github.com/users/jasontedor/following{/other_user}","gists_url":"https://api.github.com/users/jasontedor/gists{/gist_id}","starred_url":"https://api.github.com/users/jasontedor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasontedor/subscriptions","organizations_url":"https://api.github.com/users/jasontedor/orgs","repos_url":"https://api.github.com/users/jasontedor/repos","events_url":"https://api.github.com/users/jasontedor/events{/privacy}","received_events_url":"https://api.github.com/users/jasontedor/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T12:34:31Z","updated_at":"2016-12-21T12:34:31Z","body":"Nice one @javanna. "}}
{"actor":{"display_login":"jasontedor"}}