Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-964

shared_transport concurrency failure - starting NotificationBusses at the same time causes "timer cannot be retrieved from protocol stack"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.8
    • 2.7
    • None
    • Hide

      Don't use shared transport

      Show
      Don't use shared transport

      I have an application that starts four jgroups NotificationBus's that all share the same UDP transport (with singleton_name="...") but are otherwise distinct. Recently, the application started to fail to start with the following stack signature:

      2009-04-27 13:56:50,425 -0500 ERROR [JGroupsTest] - Exception running bus
      org.jgroups.ChannelException: unable to setup the protocol stack: timer cannot be retrieved from protocol stack
      at org.jgroups.JChannel.init(JChannel.java:1574)
      at org.jgroups.JChannel.<init>(JChannel.java:257)
      at org.jgroups.JChannel.<init>(JChannel.java:240)
      at org.jgroups.blocks.NotificationBus.<init>(NotificationBus.java:69)
      at JGroupsTest$1.run(JGroupsTest.java:25)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.Exception: timer cannot be retrieved from protocol stack
      at org.jgroups.protocols.Discovery.init(Discovery.java:98)
      at org.jgroups.protocols.PING.init(PING.java:84)
      at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:641)
      at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:468)
      at org.jgroups.JChannel.init(JChannel.java:1570)
      ... 5 more

      I created a test application that does nothing but start these four busses, and if I start them simultaneously, I can always reproduce the above error. I will attach the test application.

        1. CoordinationBus.xml
          4 kB
        2. JGroupsTest.java
          1 kB
        3. JGroupsTest.java
          1 kB
        4. log4j.xml
          0.7 kB

              rhn-engineering-bban Bela Ban
              ekuns_jira Edward Kuns (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: