Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-186

Lateral cache replication is not working with UDP discovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-2.2
    • jcs-3.1
    • TCP Lateral Cache
    • None
    • Important

    Description

      Hello,

       

      When using UDP discovery, the replication is not working. I'm using the basic example from the website and although the instances discover each other, there's no actual replication of cache objects.

      This issue only occurs with UDP discovery. When specifying the TCP Servers list everything works as exepected.

       

      The issue seems to be introduced with the refactorings in this commit:

      http://svn.apache.org/viewvc/commons/proper/jcs/tags/commons-jcs-2.2/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPDiscoveryListener.java?r1=1803806&r2=1593843&diff_format=h

       

      As a technical note, the tcpServer of the attributes is empty when using UDP discovery, so the DiscoveredService will never be added to the noWait list.

       

      Let me know if you need more details.

      Thank you,

      Alex

       

      Attachments

        Activity

          People

            tv Thomas Vandahl
            alixandru Alex L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: