{"action":"opened","issue":{"url":"https://api.github.com/repos/radargun/radargun/issues/319","labels_url":"https://api.github.com/repos/radargun/radargun/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/radargun/radargun/issues/319/comments","events_url":"https://api.github.com/repos/radargun/radargun/issues/319/events","html_url":"https://github.com/radargun/radargun/issues/319","id":122733239,"number":319,"title":"Master-slave communication stuck","user":{"login":"vjuranek","id":494573,"avatar_url":"https://avatars.githubusercontent.com/u/494573?v=3","gravatar_id":"","url":"https://api.github.com/users/vjuranek","html_url":"https://github.com/vjuranek","followers_url":"https://api.github.com/users/vjuranek/followers","following_url":"https://api.github.com/users/vjuranek/following{/other_user}","gists_url":"https://api.github.com/users/vjuranek/gists{/gist_id}","starred_url":"https://api.github.com/users/vjuranek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjuranek/subscriptions","organizations_url":"https://api.github.com/users/vjuranek/orgs","repos_url":"https://api.github.com/users/vjuranek/repos","events_url":"https://api.github.com/users/vjuranek/events{/privacy}","received_events_url":"https://api.github.com/users/vjuranek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T13:19:32Z","updated_at":"2015-12-17T13:19:32Z","closed_at":null,"body":"I spot following issue in master-slave communication in RG 2.X branch (not sure if present in RG3):\r\nsome slaves are properly started, but some got stuck, waiting for master (even worse not at the beginning of communication, it receives Configuration from master and then got stuck). My suspect is that RG master has wrong number expected responses for some reason and and waits for responses from other (non-existing) slaves in [slave communication loop](https://github.com/radargun/radargun/blob/master/core/src/main/java/org/radargun/RemoteSlaveConnection.java#L213). But I have to verify this hypothesis yet.\r\n\r\nPart of the stack trace from RG master:\r\n```\r\n   java.lang.Thread.State: RUNNABLE\r\n        at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)\r\n        at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)\r\n        at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:79)\r\n        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)\r\n        - locked <0x0000000716c475a0> (a sun.nio.ch.Util$2)\r\n        - locked <0x0000000716c47518> (a java.util.Collections$UnmodifiableSet)\r\n        - locked <0x0000000716c460d0> (a sun.nio.ch.EPollSelectorImpl)\r\n        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)\r\n        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:101)\r\n        at org.radargun.RemoteSlaveConnection.flushBuffers(RemoteSlaveConnection.java:180)\r\n        at org.radargun.RemoteSlaveConnection.runStage(RemoteSlaveConnection.java:162)\r\n        at org.radargun.Master.executeDistStage(Master.java:236)\r\n        at org.radargun.Master.executeStage(Master.java:144)\r\n        at org.radargun.Master.run(Master.java:90)\r\n        at org.radargun.LaunchMaster.main(LaunchMaster.java:32)\r\n```\r\n\r\nPart of the stack trace from stuck slave:\r\n```\r\njava.lang.Thread.State: RUNNABLE\r\n        at sun.nio.ch.FileDispatcherImpl.read0(Native Method)\r\n        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)\r\n        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)\r\n        at sun.nio.ch.IOUtil.read(IOUtil.java:197)\r\n        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)\r\n        - locked <0x00000006c03118f0> (a java.lang.Object)\r\n        at org.radargun.RemoteMasterConnection.readInt(RemoteMasterConnection.java:111)\r\n        at org.radargun.RemoteMasterConnection.receiveObject(RemoteMasterConnection.java:127)\r\n        at org.radargun.Slave.run(Slave.java:36)\r\n        at org.radargun.Slave.main(Slave.java:67)\r\n```"}}