Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-103

ConnectionPool::borrowObject throws HotRodClientException with 3 node cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.1.Final
    • 6.0.1.Final
    • None
    • None

      Trying to run org.infinispan.client.hotrod.BulkGetReplTest from JniTest. Three servers are started, but the RemoteCacheManager constructor fails in TcpTransportFactory::pingServers, because ConnectionPool::borrowObject throws a HotRodClientException on line 25 for the pool being closed because the InetSocketAddress is in the idle or busy list. Here's a log with some extra logging in the code:

      7: Running test class org.infinispan.client.hotrod.BulkGetReplTest
      7: [TestNG] Running:
      7:   Command line suite
      7: 
      7: Transport protocol stack used = tcp
      7: Dec 06, 2013 3:58:22 PM org.infinispan.server.core.logging.Log$class info
      7: INFO: Start server in port 15233
      7: Dec 06, 2013 3:58:22 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
      7: INFO: ISPN000078: Starting JGroups Channel
      7: Dec 06, 2013 3:58:22 PM org.jgroups.logging.JDKLogImpl info
      7: INFO: UFC is not needed (and can be removed) as we're running on a TCP transport
      7: Dec 06, 2013 3:58:22 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|0] (1) [NodeA-58186]
      7: Dec 06, 2013 3:58:22 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport startJGroupsChannelIfNeeded
      7: INFO: ISPN000079: Cache local address is NodeA-58186, physical addresses are [127.0.0.1:7900]
      7: Dec 06, 2013 3:58:22 PM org.infinispan.factories.GlobalComponentRegistry start
      7: INFO: ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.0.Final
      7: Dec 06, 2013 3:58:22 PM org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup getTransactionManager
      7: INFO: ISPN000107: Retrieving transaction manager Transaction: unknown
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: Dec 06, 2013 3:58:23 PM org.infinispan.server.core.logging.Log$class info
      7: INFO: Start server in port 15234
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
      7: INFO: ISPN000078: Starting JGroups Channel
      7: Dec 06, 2013 3:58:23 PM org.jgroups.logging.JDKLogImpl info
      7: INFO: UFC is not needed (and can be removed) as we're running on a TCP transport
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|1] (2) [NodeA-58186, NodeB-54322]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|1] (2) [NodeA-58186, NodeB-54322]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport startJGroupsChannelIfNeeded
      7: INFO: ISPN000079: Cache local address is NodeB-54322, physical addresses are [127.0.0.1:7901]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: Dec 06, 2013 3:58:23 PM org.infinispan.server.core.logging.Log$class info
      7: INFO: Start server in port 15235
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
      7: INFO: ISPN000078: Starting JGroups Channel
      7: Dec 06, 2013 3:58:23 PM org.jgroups.logging.JDKLogImpl info
      7: INFO: UFC is not needed (and can be removed) as we're running on a TCP transport
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|2] (3) [NodeA-58186, NodeB-54322, NodeC-53661]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|2] (3) [NodeA-58186, NodeB-54322, NodeC-53661]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
      7: INFO: ISPN000094: Received new cluster view: [NodeA-58186|2] (3) [NodeA-58186, NodeB-54322, NodeC-53661]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport startJGroupsChannelIfNeeded
      7: INFO: ISPN000079: Cache local address is NodeC-53661, physical addresses are [127.0.0.1:7902]
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: Dec 06, 2013 3:58:23 PM org.infinispan.jmx.CacheJmxRegistration start
      7: INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
      7: RemoteCacheManager server list: 'localhost:15233;localhost:15234;localhost:15235;'
      7: Adding host: localhost on port: 15233
      7: Adding host: localhost on port: 15234
      7: Adding host: localhost on port: 15235
      7: After configuration
      7: After TcpTransportFactory ping
      7: After TcpTransportFactory ping
      7: 2) Throw HotRodClientException Pool is closed. host: localhost port: 15234
      7: Dec 06, 2013 3:58:24 PM org.infinispan.test.MultipleCacheManagersTest callCreateCacheManagers
      7: ERROR: Error in test setup: 
      7: java.lang.RuntimeException: C++ unknown exception thrown from infinispan::hotrod::RemoteCacheManager::RemoteCacheManager(std::map< std::string,std::string > const &,bool)
      

            ttarrant@redhat.com Tristan Tarrant
            rhn-support-afield Alan Field
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: