Thread: deadlock while creating a topic in messaging pattern?

This question is not answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Oct 23, 2009 7:47 AM Last Post By: user10898627 Threads: [ Previous | Next ]
user10898627

Posts: 13
Registered: 02/17/09
deadlock while creating a topic in messaging pattern?
Posted: Oct 21, 2009 3:28 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
I've faced some kind of deadlock while trying to use messaging pattern

I use coherence-messagingpattern-pof-cache-config.xml (I tried without POF serializers - no difference)

in client side I use following code to establish a topic:

messagingSession = DefaultMessagingSession.getInstance();
topic = messagingSession.createTopic(topicName);


when I have a single server on cluster it works fine, but when I have add one more cache server, this code freezes forever on creating topic (line 2). I run three jvms on same host, used versions coherence 3.4.2, messaging & command pattern 2.4.0, incubator common 1.4.0.

Following log appears on one of the cluster nodes

...
2009-10-21 14:06:55.841/54.894 Oracle Coherence GE 3.4.2/411 <D5> (thread=Cluster, member=2): Member 3 joined Service DistributedCacheForCommandPatternDistributedCommands with senior member 1
2009-10-21 14:06:56.031/55.084 Oracle Coherence GE 3.4.2/411 <Info> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=2): Loading POF configuration from resource "jar:file:/home/breeze/coherence/lib/ext/com.macys.breeze.coherence.config.jar!/messaging-pof-config.xml"
2009-10-21 14:06:56.032/55.085 Oracle Coherence GE 3.4.2/411 <Info> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=2): Loading POF configuration from resource "jar:file:/home/breeze/coherence/lib/coherence.jar!/coherence-pof-config.xml"
2009-10-21 14:06:56.036/55.089 Oracle Coherence GE 3.4.2/411 <Info> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=2): Loading POF configuration from resource "jar:file:/home/breeze/coherence/lib/ext/com.macys.breeze.coherence.config.jar!/coherence-common-pof-config.xml"
2009-10-21 14:06:56.037/55.090 Oracle Coherence GE 3.4.2/411 <Info> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=2): Loading POF configuration from resource "jar:file:/home/breeze/coherence/lib/ext/com.macys.breeze.coherence.config.jar!/coherence-commandpattern-pof-config.xml"
2009-10-21 14:06:56.038/55.091 Oracle Coherence GE 3.4.2/411 <Info> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=2): Loading POF configuration from resource "jar:file:/home/breeze/coherence/lib/ext/com.macys.breeze.coherence.config.jar!/coherence-messagingpattern-pof-config.xml"
2009-10-21 14:06:56.067/55.120 Oracle Coherence GE 3.4.2/411 <D5> (thread=Cluster, member=2): Member 3 joined Service DistributedCacheForCommandPattern with senior member 1
2009-10-21 14:06:56.121/55.174 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCacheForCommandPatternWorker:1, member=2): Context Identifier{product-updates-topic} has been inserted into this member
2009-10-21 14:06:56.126/55.179 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCacheForCommandPatternWorker:1, member=2): Creating CommandExecutor for Identifier{product-updates-topic}


on the client node

2009-10-21 14:06:55.879/20.394 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=3): Service DistributedCacheForCommandPatternDistributedCommands joined the cluster with senior service member 1
2009-10-21 14:06:55.888/20.403 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCache:DistributedCacheForCommandPatternDistributedCommands, member=3): Service DistributedCacheForCommandPatternDistributedCommands: received ServiceConfigSync containing 258 entries
2009-10-21 14:06:56.070/20.585 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCache:DistributedCacheForCommandPattern, member=3): Service DistributedCacheForCommandPattern joined the cluster with senior service member 1
2009-10-21 14:06:56.075/20.590 Oracle Coherence GE 3.4.2/411 <D5> (thread=DistributedCache:DistributedCacheForCommandPattern, member=3): Service DistributedCacheForCommandPattern: received ServiceConfigSync containing 258 entries


with step-debugging it works fine, so it seems like a kind of deadlock

And I'm just stuck with no ideas where it can come from?

?:|
pmackin

Posts: 62
Registered: 01/10/01
Re: deadlock while creating a topic in messaging pattern?
Posted: Oct 21, 2009 5:41 AM   in response to: user10898627 in response to: user10898627
 
Click to report abuse...   Click to reply to this thread Reply
Hi

Could you run the messaging pattern functional tests under the tests directory to see if they work? Also, could you set logging severity to level 5 ( -Dtangosol.coherence.log.level=5 ) then attach the log files to this thread?

thanks
Paul
user10898627

Posts: 13
Registered: 02/17/09
Re: deadlock while creating a topic in messaging pattern?
Posted: Oct 23, 2009 7:47 AM   in response to: pmackin in response to: pmackin
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

functional updates passed

With thread dump and extended logs I found the cause of the issue - actually it was ExtendTcpService, which could not bind a port (I ran two cache servers on single machine, so they had to fight for IP) and blocked coherence service creation. I fixed tcp-acceptor configuration and MessagingService works now.

Thanks!
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums