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

Can't create a second version of a shared transport channel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.6.2, 2.7
    • None
    • None

      SharedTransportTest.testReCreationWithSurvivingChannel() shows the problem:

      // Create 2 channels sharing a transport
      a=createSharedChannel(SINGLETON_1);
      a.connect("A");
      b=createSharedChannel(SINGLETON_1);
      b.connect("B");

      a.disconnect();

      // a is disconnected so we should be able to create a new
      // channel with group "A"
      c=createSharedChannel(SINGLETON_1);
      c.connect("A");

      This is basically testing a scenario where a service that creates/connects a channel is restarted.

      This works fine if the 'b' channel isn't connected. AFAICT, problem is Configurator.startProtocolStack() is storing data in the TP.up_prots map, but the disconnect() process (e.g. Configurator.stopProtocolStack()) isn't removing it.

              rhn-engineering-bban Bela Ban
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: