{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/14824","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14824/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14824/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14824/events","html_url":"https://github.com/elastic/elasticsearch/issues/14824","id":117535131,"number":14824,"title":"Potential issue when testing plugins using ElasticsearchIntegrationTest?","user":{"login":"jaranflaath","id":112975,"avatar_url":"https://avatars.githubusercontent.com/u/112975?v=3","gravatar_id":"","url":"https://api.github.com/users/jaranflaath","html_url":"https://github.com/jaranflaath","followers_url":"https://api.github.com/users/jaranflaath/followers","following_url":"https://api.github.com/users/jaranflaath/following{/other_user}","gists_url":"https://api.github.com/users/jaranflaath/gists{/gist_id}","starred_url":"https://api.github.com/users/jaranflaath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaranflaath/subscriptions","organizations_url":"https://api.github.com/users/jaranflaath/orgs","repos_url":"https://api.github.com/users/jaranflaath/repos","events_url":"https://api.github.com/users/jaranflaath/events{/privacy}","received_events_url":"https://api.github.com/users/jaranflaath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Network","name":":Network","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T08:03:44Z","updated_at":"2015-11-19T05:33:26Z","closed_at":"2015-11-19T02:08:45Z","body":"Hi,\r\n\r\nI've come across a potential issue when writing an integration test for one of our plugins using the ElasticsearchIntegrationTest class. This is in version 1.7.3.\r\n\r\nWhen a plugin tries to make a request to Elasticsearch, it will receive an error due to the assert in org.elasticsearch.transport.Transports which is checking if the current thread is a transport thread.\r\n\r\nI have created a github repo which demonstrates the issue: https://github.com/jaranflaath/es-plugin-integrationtest\r\n\r\nRunning the PluginTest will reproduce the situation.\r\n\r\nI am not certain if this is an issue in Elasticsearch, or an issue with the way we try to test our plugin, so any input is welcome.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/157956897","html_url":"https://github.com/elastic/elasticsearch/issues/14824#issuecomment-157956897","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14824","id":157956897,"user":{"login":"jaranflaath","id":112975,"avatar_url":"https://avatars.githubusercontent.com/u/112975?v=3","gravatar_id":"","url":"https://api.github.com/users/jaranflaath","html_url":"https://github.com/jaranflaath","followers_url":"https://api.github.com/users/jaranflaath/followers","following_url":"https://api.github.com/users/jaranflaath/following{/other_user}","gists_url":"https://api.github.com/users/jaranflaath/gists{/gist_id}","starred_url":"https://api.github.com/users/jaranflaath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaranflaath/subscriptions","organizations_url":"https://api.github.com/users/jaranflaath/orgs","repos_url":"https://api.github.com/users/jaranflaath/repos","events_url":"https://api.github.com/users/jaranflaath/events{/privacy}","received_events_url":"https://api.github.com/users/jaranflaath/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T05:33:26Z","updated_at":"2015-11-19T05:33:26Z","body":"Thanks a lot for your feedback and suggested solution. Will give it a try :)"}}