<div dir="ltr">Hi all,<br><br>I am writing a simple Fault tolerant server which can handle client request without any service interruption..Using C++ & omniORB<br><br>In my system there are two servers as Master & Slave..<br>
<br>When they starts they get registered with the name service as usual. Normally the first one will be the Master and the next one is the slave.<br><br>All are working properly..But still have a simple problem which I was unable to solve. It is as follows.<br>
<br><ul><li>When both Master & Slave are running.... </li><li>Manually kill the Slave </li><li>Start the Slave again.</li></ul>In some situation this Slave restart does not work properly.. it gives an exception. This exception is my own exception and It says that Slave already exist.<br>
<span class="description">This happens only randomly, but occurring frequency is pretty high. (at least 30% of the time it will happen)<br><br>If I retry several times I could get success. Because If I call start method within the catch block I can really reduce the occurring frequency of this exception.<br>
</span><br><br>So I guess the problem is with the name service. Because when I just kill the Slave, the name service does not know anything about this killing. So it is still keep registering details of the Slave. Because of that it gives and exception when I am going to register the Slave again.<br>
<br>Please can anyone guess any other reason for this problem.....?<br><br>If my guess is correct...Please can anyone help me to solve this problem.. Is there a continues synchronization between the name service and the service itself .....?<br>
<br clear="all"><br>-- <br>Regards,<br>R. P. Janaka<br>
</div>