logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Third server not discovered by second server with LateralTCP: msg#00004

jakarta.turbine.jcs.devel

Subject: Third server not discovered by second server with LateralTCP


Hello,

we use an net with 3 servers and use the LateralTCP protocol.
We don´t use musticast (jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled =
false).
Each server is configured the other two servers with
jcs.auxiliary.LTCP.attributes.TcpServers.

At first we start server 1.
Server 1 tries to connect to server 2 and 3.

Then we start server 2.
Server 2 connects to server 1 but does not try to connect to server 3.
Server 1 connects to server 2

Then we start server 3.
Server 3 connects to server 1 and 2.
Server 1 connects to server 3.

The error:
Server 2 never tries to connect to server 3 and so the puts of server 2
never reach server 3.

This error occurs with 3 servers on 3 nodes and also with 3 servers on the
same node.


we found a solution for the problem:
In the class
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager the Map
"instances" is synchronised at getInstance() but not at getInstances(). So
an inconsistent value of instances may be got by call of getInstances().
The following change of getInstances() fixes the problem:

public Map getInstances()
{
synchronized ( instances ) {
return instances;
}
}

We use new and fast machines, maybe that older and slower machines does not
produce this synchronisation error.

best regards,

Dieter


--
View this message in context:
http://www.nabble.com/Third-server-not-discovered-by-second-server-with-LateralTCP-tf4843140.html#a13855881
Sent from the JCS - Dev mailing list archive at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation