0MQ test barfing intermittently
[ERROR] [04/25/2012 16:15:07.613] [ZeromqDocTest-1] [akka://ZeromqDocTest/user/zeromq/$a] Socket operation on non-socket
org.zeromq.ZMQException: Socket operation on non-socket
at org.zeromq.ZMQ$Socket.raiseZMQException(ZMQ.java:454)
at org.zeromq.ZMQ$Socket.send(ZMQ.java:353)
at akka.zeromq.ConcurrentSocketActor.sendBytes$1(ConcurrentSocketActor.scala:154)
at akka.zeromq.ConcurrentSocketActor.akka$zeromq$ConcurrentSocketActor$$sendMessage(ConcurrentSocketActor.scala:159)
at akka.zeromq.ConcurrentSocketActor$$anonfun$receive$1.apply(ConcurrentSocketActor.scala:41)
at akka.zeromq.ConcurrentSocketActor$$anonfun$receive$1.apply(ConcurrentSocketActor.scala:39)
at akka.actor.Actor$class.apply(Actor.scala:311)
at akka.zeromq.ConcurrentSocketActor.apply(ConcurrentSocketActor.scala:24)
at akka.actor.ActorCell.invoke(ActorCell.scala:618)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:196)
at akka.dispatch.Mailbox.run(Mailbox.scala:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
org.zeromq.ZMQException: Socket operation on non-socket
at org.zeromq.ZMQ$Socket.raiseZMQException(ZMQ.java:454)
at org.zeromq.ZMQ$Socket.send(ZMQ.java:353)
at akka.zeromq.ConcurrentSocketActor.sendBytes$1(ConcurrentSocketActor.scala:154)
at akka.zeromq.ConcurrentSocketActor.akka$zeromq$ConcurrentSocketActor$$sendMessage(ConcurrentSocketActor.scala:159)
at akka.zeromq.ConcurrentSocketActor$$anonfun$receive$1.apply(ConcurrentSocketActor.scala:41)
at akka.zeromq.ConcurrentSocketActor$$anonfun$receive$1.apply(ConcurrentSocketActor.scala:39)
at akka.actor.Actor$class.apply(Actor.scala:311)
at akka.zeromq.ConcurrentSocketActor.apply(ConcurrentSocketActor.scala:24)
at akka.actor.ActorCell.invoke(ActorCell.scala:618)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:196)
at akka.dispatch.Mailbox.run(Mailbox.scala:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Leave a comment
on 2012-04-25 07:17 *
By viktorklang
Roland, it seems like one of the doc tests has a bad config or something, can you take a quick peek at it?
You did not include much context, so I assume that no test has actually failed, right? Running many CPU-burning processes in parallel, I was able to reproduce the message, and upon inspection of various layers of code I come to the conclusion that the message is correct. There are several things wrong:
That’s the status for now, I’ll defer everything else to tomorrow.
- The test should not bind twice to the same port, because the second will fail, leading possibly to this error.
- However, a socket may close without us calling zmq_close(), and in this case we’ll always get an error like this upon the next operation. The zeromqguardian will then stop the socket actor, but I think the message should stay.
- That being said, it is actually a bit stupid that socket.bind() does not return possible error codes from zmq_bind, which we could use to immediately stop the actor instead of failing upon first send/poll. Unfortunately the error is in zeromq-scala-bindings.
That’s the status for now, I’ll defer everything else to tomorrow.
(In revision:1cfa267b80087ff9cb7719388b5712de43566c1a) do not reuse same port in same ømq test, fixes #2022
Branch: master
Branch: master
on 2012-05-02 13:18 *
By rk@rkuhn.info
(In revision:1cfa267b80087ff9cb7719388b5712de43566c1a) do not reuse same port in same ømq test, fixes #2022
Branch: wip-camel-doc
Branch: wip-camel-doc
Updating tickets (#520, #852, #857, #874, #935, #950, #1364, #1508, #1542, #1559, #1734, #1744, #1755, #1782, #1812, #1824, #1831, #1858, #1871, #1880, #1886, #1892, #1896, #1899, #1929, #1930, #1950, #1952, #1953, #1962, #1966, #1969, #1972, #1973, #1977, #1978, #1986, #1988, #1993, #1999, #2000, #2003, #2005, #2006, #2015, #2016, #2019, #2021, #2022, #2023, #2024, #2025, #2029, #2031, #2032, #2036, #2046, #2048, #2051, #2055, #2059, #2061, #2062, #2064, #2065, #2068, #2072, #2074, #2076, #2078, #2079, #2085, #2087, #2088, #2089, #2090, #2091, #2092, #2093, #2095, #2098, #2099, #2100, #2101, #2102, #2119, #2129, #2134, #2135, #2136, #2144, #2147, #2148, #2156, #2166, #2168, #2172, #2174, #2178, #2183)