Created ticket #924, will try to add reproducible testcase
On Jun 14, 12:38 am, √iktor Ҡlang <
viktor.kl...@gmail.com> wrote:
> I think it's related to the introduction of "dispatchFuture" in the EBEDD.
> Can you open a ticket, and do you have a reproducible testcase?
>
> Cheers,
> √
>
> On Tue, Jun 14, 2011 at 12:36 AM, Raymond Roestenburg <
>
>
>
>
>
>
>
>
raymond.roestenb...@gmail.com> wrote:
> > Thanks again, everything works and compiles.
> > I just noticed something else though, which has happened since 1.1 and has
> > not changed now that I have moved to 1.2.
> > In some unit tests that we have on the project, I get the following:
>
> > akka.actor.Scheduler$SchedulerException: Failed to scheduleOnce a Runnable
> > at akka.actor.Scheduler$.scheduleOnce(Scheduler.scala:102)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.MessageDispatcher$class.unregister(MessageHandling.scala:140)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.ThreadBasedDispatcher.unregister(ThreadBasedDispatcher.scala: 40)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.ThreadBasedDispatcher.unregister(ThreadBasedDispatcher.scala: 17)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.MessageDispatcher$$anonfun$detach$1.apply(MessageHandling.sca la:83)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at akka.util.ReentrantGuard.withGuard(LockUtil.scala:20)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.MessageDispatcher$class.detach(MessageHandling.scala:82)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.dispatch.ExecutorBasedEventDrivenDispatcher.detach(ExecutorBasedEventD rivenDispatcher.scala:66)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.actor.LocalActorRef$$anonfun$stop$1.apply$mcV$sp(ActorRef.scala:705)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.actor.LocalActorRef$$anonfun$stop$1.apply(ActorRef.scala:702)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at
> > akka.actor.LocalActorRef$$anonfun$stop$1.apply(ActorRef.scala:702)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at akka.util.ReentrantGuard.withGuard(LockUtil.scala:20)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > at akka.actor.LocalActorRef.stop(ActorRef.scala:701)
> > ~[akka-actor-1.2-SNAPSHOT.jar:na]
> > ...
>
> > It happens on tearDown of the unit test, when I stop all the actors I have
> > started (some of them stop other actorRefs that they manage on postStop)
> > Anyone got an idea why this happens?
>
> > 2011/6/14 √iktor Ҡlang <
viktor.kl...@gmail.com>
>
> >> Awesome, thanks for staying on top of things!
>
> >> On Mon, Jun 13, 2011 at 8:38 PM, Roland Kuhn <
goo...@rkuhn.info> wrote:
>
> >>> Okay, I fixed both compilation errors. Someone with better knowledge of
> >>> HawtDispatch should have a look at my “fix”, though.
>
> >>> Regards,
>
> >>> Roland
>
> >>> On Jun 13, 2011, at 20:01 , Jonas Bonér wrote:
>
> >>> Now you have commit rights.
>
> >>> --
> >>> Jonas Bonér
> >>> CTO Typesafe <
http://www.typesafe.com/> - Enterprise-Grade Scala from
> >>> the Experts
> >>> Phone: +46 733 777 123
> >>> Twitter: @jboner <
http://twitter.com/jboner>
>
> >>> On måndag den 13 juni 2011 at 19.58, Roland Kuhn wrote:
>
> >>> akka-modules 1.2 is unfortunately not in sync with akka 1.2 at the
> >>> moment. The change which introduced the first breakage you detail below was
> >>> done by me, but I don’t have commit rights on akka-modules …
>
> >>> You can fix the first one by changing "sender, senderFuture" => "channel"
> >>> on the line with the error.
>
> >>> On Jun 13, 2011, at 19:29 , Raymond Roestenburg wrote:
>
> >>> I've published akka 1.2-snapshot locally, everything fine. After that I'm
> >>> trying to publish akka-modules locally, but get compile errors.
> >>> Is the akka-modules 1.2-snapshot and akka 1.2 in sync and up to date?
>
> >>> I get this:
>
> >>> [error]
> >>> /home/rroestenburg/akka-modules/akka-camel/src/main/scala/akka/camel/Produc er.scala:118:
> >>> too many arguments for method
> >>> postMessageToMailboxAndCreateFutureResultWithTimeout: (message: Any,
> >>> timeout: Long, channel:
> >>> akka.actor.UntypedChannel)akka.dispatch.ActorCompletableFuture
> >>> [error]
> >>> producer.postMessageToMailboxAndCreateFutureResultWithTimeout(result,
> >>> producer.timeout, sender, senderFuture)
>
> >>> and this:
> >>> [error]
> >>> /home/rroestenburg/akka-modules/akka-dispatcher-extras/src/main/scala/akka/ dispatch/HawtDispatcher.scala:141:
> >>> class HawtDispatcher needs to be abstract, since method mailboxIsEmpty in
> >>> trait MessageDispatcher of type (actorRef: akka.actor.ActorRef)Boolean is
> >>> not defined
> >>> [error] class HawtDispatcher(val aggregate: Boolean = true, val parent:
> >>> DispatchQueue = globalQueue) extends MessageDispatcher {
> >>> [error] ^
> >>> [error] one error found
>
> >>> akka modules: (release-1.2) git commit
> >>> 63eb29c0008e232801d5b16497fb546a0039fb57
> >>> akka : (release-1.2) git commit 654de23f1e3af0c749a9153432a23cc45edb93d8
>
> >>> I have cleaned out my ivy cache a couple of times, ran sbt clean
> >>> clean-lib update etc, hopefully its not one of those issues. Has anybody
> >>> else had these problems?
>
> >>> 2011/6/13 √iktor Ҡlang <
viktor.kl...@gmail.com>
>
> >>> On Mon, Jun 13, 2011 at 11:11 AM, Raymond Roestenburg <
> >>>
raymond.roestenb...@gmail.com> wrote:
>
> >>> Great, thanks!
> >>> I'll try out release 1.2.
>
> >>> You're welcome!
>
> >>> 2011/6/12 √iktor Ҡlang <
viktor.kl...@gmail.com>
>
> >>> Hi Raymond,
>
> >>> I've fixed the bottleneck in the "release-1.2" branch by dropping the
> >>> synchronized-block and resorted to send the cookie for each message, so for
> >>> maximum performance for 1.2, omit the cookie in the config.
>
> >>> For 2.0 we've switched to a handshake on connection established, which
> >>> will be as performant as w/o the cookie.
>
> >>> Please try the "release-1.2" branch out and see if it solves your issue.
>
> >>> Sorry for the delay, I've been traveling a lot lately.
>
> >>> Cheers,
> >>> √
>
> >>> On Tue, Jun 7, 2011 at 10:23 PM, Raymond Roestenburg <
> >>>
raymond.roestenb...@gmail.com> wrote:
>
> >>> Hi Viktor,
>
> >>> I have just upgraded from somewhere before 1.0 to 1.1.2 for an in
> >>> production system which has quite high performance requirements (we are
> >>> having some issues with reconnects). In that previous version there was no
> >>> synchronized block and no cookies yet, so I would love to see the fix you
> >>> describe in as soon as possible, if it is only necessary for the secure
> >>> cookie feature. If it is as simple as just taking out the synchronized I
> >>> guess I could patch it myself, but I would of course rather have a version
> >>> update :)
> >>> Looking forward to 1.2
>
> >>> 2011/6/1 √iktor Ҡlang <
viktor.kl...@gmail.com>
> >>> - Is this synchronized really necessary?
> >>> - Why?
> >>> - Is it in the right place? Could it be covering less of the
> >>> execution of the send?
> >>> - What are some good options to get around this to not spend as much
> >>> time blocking?
> >>> - Have we done something wrong to end up here?
>
> >>> That's fixed in Akka 2.0 because the security layer (secure cookie
> >>> handshake) has been reworked.
>
> >>> It would be a lot of work trying to backport that, but what we
>
> ...
>
> read more »