Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1567

createHotRodServers() from org.infinispan.client.hotrod.test.MultiHotRodServersTest crashes when using replication queue

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 5.1.0.BETA5
    • 5.1.0.CR1
    • Test Suite
    • None
    • Hide

      Just create a new test class that extends MultiHotRodServersTest, override createCacheManagers() and insert the code mentioned in the above description.

      Show
      Just create a new test class that extends MultiHotRodServersTest, override createCacheManagers() and insert the code mentioned in the above description.

    Description

      When a class extends MultiHotRodServersTest and tries to use createHotRodServers to create 2 servers with REPL_ASYNC and useReplQueue configurations, it crashes on the error message "Use of the replication queue is only allowed with an ASYNCHRONOUS cluster mode."

      Configuration config = new Configuration().fluent()
                     .clustering()
                        .mode(CacheMode.REPL_ASYNC)
                        .async()
                           .replQueueInterval(1000L)
                           .useReplQueue(true)
                     .eviction()
                        .maxEntries(3)
                     .build();      
      createHotRodServers(2, config);
      

      I think this happens because in HotRodServer in method createTopologyCacheConfig REPL_SYNC is set but replication queue is not disabled.

      Attachments

        Activity

          People

            gzamarre Galder ZamarreƱo
            jvilkola Jozef Vilkolak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: