Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-504

MixedModeServiceURLTestCase fails intermittently due to invalid temp ServiceURL result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.6.Final, 4.0.54.Final
    • None
    • None

      org.jboss.ejb.client.test.byteman.MixedModeServiceURLTestCase#testInvocationOnMixedModeCluster fails intermittently, 

      java.lang.AssertionError: ServiceURLs do not match for node2 expected:<[[service:ejb.jboss:remote://localhost:7099, node=node2], [cluster=mixed-ejb, node=node2, service:ejb.jboss:remote://127.0.0.1:7099], [node=node2, service:ejb.jboss:remote://127.0.0.1:7099]]> but was:<[[cluster=mixed-ejb, ejb-module=my-foo-app/my-bar-module, node=node2, service:ejb.jboss:remote://127.0.0.1:7099], [ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:7099, node=node2], [cluster=mixed-ejb, ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:7099, node=node2], [ejb-module=my-foo-app/my-bar-module, node=node2, service:ejb.jboss:remote://127.0.0.1:7099]]>

       

      From the test log, the test did get the correct result (see "Adding serviceURL to map:"), but the correct result list was later overwritten by subsequent bad entry (the serviceURLs without ejb-module attribute, and only had 3 instead 4 URLs)

      ** Adding serviceURL to map: node = node2, list = [service:ejb.jboss:remote://127.0.0.1:7099;node=node2;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://127.0.0.1:7099;cluster=mixed-ejb;node=node2;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:7099;node=node2;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:7099;cluster=mixed-ejb;node=node2;ejb-module=my-foo-app/my-bar-module]
      rule.debug{Track calls to discover (COLLECT)_2:0} : NodeInformation.discover() was called
      00:19:16,034 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      rule.debug{Track calls to getServiceURLCache (COLLECT)_1:0} : NodeInformation.getServiceURLCache() was called
      ** Adding serviceURL to map: node = node1, list = [service:ejb.jboss:remote://127.0.0.1:6999;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://127.0.0.1:6999;cluster=mixed-ejb;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:6999;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:6999;cluster=mixed-ejb;node=node1;ejb-module=my-foo-app/my-bar-module]
      00:19:16,034 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      00:19:16,034 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      00:19:16,034 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      00:19:16,035 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      rule.debug{Track calls to getServiceURLCache (COLLECT)_1:0} : NodeInformation.getServiceURLCache() was called
      ** Adding serviceURL to map: node = node2, list = [service:ejb.jboss:remote://127.0.0.1:7099;node=node2, service:ejb.jboss:remote://127.0.0.1:7099;cluster=mixed-ejb;node=node2, service:ejb.jboss:remote://localhost:7099;node=node2]
      ** Overwrite occurred when writing to list map!
      00:19:16,035 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      rule.debug{Track calls to discover (COLLECT)_2:0} : NodeInformation.discover() was called
      rule.debug{Track calls to getServiceURLCache (COLLECT)_1:0} : NodeInformation.getServiceURLCache() was called
      00:19:16,035 DEBUG [org.jboss.ejb.client.invocation] (main)   DISCOVERY_ADDITIONAL_TIMEOUT = 5000
      ** Adding serviceURL to map: node = node1, list = [service:ejb.jboss:remote://127.0.0.1:6999;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://127.0.0.1:6999;cluster=mixed-ejb;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:6999;node=node1;ejb-module=my-foo-app/my-bar-module, service:ejb.jboss:remote://localhost:6999;cluster=mixed-ejb;node=node1;ejb-module=my-foo-app/my-bar-module]
      ** Overwrite occurred when writing to list map! 

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: