{"action":"created","issue":{"url":"https://api.github.com/repos/jacoco/eclemma/issues/64","repository_url":"https://api.github.com/repos/jacoco/eclemma","labels_url":"https://api.github.com/repos/jacoco/eclemma/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/jacoco/eclemma/issues/64/comments","events_url":"https://api.github.com/repos/jacoco/eclemma/issues/64/events","html_url":"https://github.com/jacoco/eclemma/issues/64","id":19313222,"number":64,"title":"Setting the interrupted status of a thread in a unit test causes \"Error while dumping coverage data (code 5013).\"","user":{"login":"AndreasBrieg","id":2742668,"avatar_url":"https://avatars.githubusercontent.com/u/2742668?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasBrieg","html_url":"https://github.com/AndreasBrieg","followers_url":"https://api.github.com/users/AndreasBrieg/followers","following_url":"https://api.github.com/users/AndreasBrieg/following{/other_user}","gists_url":"https://api.github.com/users/AndreasBrieg/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasBrieg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasBrieg/subscriptions","organizations_url":"https://api.github.com/users/AndreasBrieg/orgs","repos_url":"https://api.github.com/users/AndreasBrieg/repos","events_url":"https://api.github.com/users/AndreasBrieg/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasBrieg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jacoco/eclemma/labels/bug","name":"bug","color":"ff3333"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-09-11T11:15:32Z","updated_at":"2016-04-11T20:31:49Z","closed_at":"2016-04-11T20:31:49Z","body":"I was unit testing some code in Kepler that needed to restore the interrupted status of the current thread after catching an `InterruptedException`.\r\n\r\nWhen I ran the coverage using EclEmma I received the error \r\n> Error while dumping coverage data (code 5013).\r\n\r\nThe stack trace is:\r\n```\r\njava.net.SocketException: Connection reset\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:189)\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:121)\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:203)\r\n\tat java.io.DataInputStream.readByte(DataInputStream.java:265)\r\n\tat org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:82)\r\n\tat com.mountainminds.eclemma.internal.core.MemoryExecutionDataSource.readFrom(MemoryExecutionDataSource.java:68)\r\n\tat com.mountainminds.eclemma.internal.core.launching.AgentServer.run(AgentServer.java:114)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)\r\n```\r\nThe question is if something can be done to avoid this error from EclEmma's point of view. JaCoCo behaves correctly as it is shutting down as fast as possible and therefore not dumping any coverage information. Maybe this only needs to be documented somewhere.\r\n\r\nI changed my unit test to always clear the interrupted status (even though this might cause an external interruption to be lost)."},"comment":{"url":"https://api.github.com/repos/jacoco/eclemma/issues/comments/208546249","html_url":"https://github.com/jacoco/eclemma/issues/64#issuecomment-208546249","issue_url":"https://api.github.com/repos/jacoco/eclemma/issues/64","id":208546249,"user":{"login":"marchof","id":1936262,"avatar_url":"https://avatars.githubusercontent.com/u/1936262?v=3","gravatar_id":"","url":"https://api.github.com/users/marchof","html_url":"https://github.com/marchof","followers_url":"https://api.github.com/users/marchof/followers","following_url":"https://api.github.com/users/marchof/following{/other_user}","gists_url":"https://api.github.com/users/marchof/gists{/gist_id}","starred_url":"https://api.github.com/users/marchof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marchof/subscriptions","organizations_url":"https://api.github.com/users/marchof/orgs","repos_url":"https://api.github.com/users/marchof/repos","events_url":"https://api.github.com/users/marchof/events{/privacy}","received_events_url":"https://api.github.com/users/marchof/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T20:31:49Z","updated_at":"2016-04-11T20:31:49Z","body":"Root cause is within JDK: https://bugs.openjdk.java.net/browse/JDK-8154017"}}