Product: | Syniti Data Replication, DBMoto |
Version: | All |
ID: | 1674 |
Summary: | How to handle a timeout exception when trying to stop the Data Replicator |
When calling a stop on the Syniti DR Replication Agent/DBMoto Data Replicator, in some cases the Service Monitor is not able to stop the Replication Agent/Data Replicator immediately and throws a timeout exception:
"The Service Monitor has encountered an error stopping the DR"
Depending on the amount of work needed to stop the Replication Agent/Data Replicator, the operation could take time. If the Service Monitor sends the request but the Replication Agent/Data Replicator does not stop within a specified time, the error is displayed.
SOLUTION
The default timeout for the stop operation is 15 seconds, but it can be changed by modifying the property <MonitorTimeout> in the dbmoto.server.config file. An increase in the number of seconds allows the Replication Agent/Data Replicator more time to stop before generating the exception.
To change the property:
- Close the Management Center.
- Stop the Replication Agent/Data Replicator and Server Agent.
- Using a text editor, open the dbmoto.server.config file located in the installation folder.
- Modify the property <MonitorTimeout> under the <optionList> tag.
- Save the dbmoto.server.config file.
- Restart the Replication Agent/Data Replicator and Server Agent.