Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-270

dsreplication disable takes a long time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0, 2.4.4, 2.4.3
    • Fix Version/s: None
    • Component/s: replication, tools
    • Labels:

      Description

      There are probably other dsreplication sub-commands impacted by the same underlying problem.

      A typical use case is where a user attempts to disable replication for a server in a large topology. For example, in a twelve node topology with 3 base DNs disabling replication in each node could take almost 9 minutes, even on a fast network (15s per call):

      01-Sep-2011 13:35:10 org.opends.guitools.controlpanel.util.ControlPanelLog initLogFileHandler
      INFO: Application launched 01 September 2011 13:35:10 BST
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache joinThreadSet
      INFO: Loading ended at 407 ms
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:13 org.opends.admin.ads.TopologyCache reloadTopology
      INFO: Handling replica with dn: dc=example,dc=com
      01-Sep-2011 13:35:17 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1206.example.com:4444.
      01-Sep-2011 13:35:38 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1206.example.com:4444.
      01-Sep-2011 13:35:49 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1206.example.com:4444.
      01-Sep-2011 13:36:14 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj0206.example.com:4444.
      01-Sep-2011 13:36:31 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj0206.example.com:4444.
      01-Sep-2011 13:36:38 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj0206.example.com:4444.
      01-Sep-2011 13:36:52 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj0203.example.com:4444.
      01-Sep-2011 13:36:58 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj0203.example.com:4444.
      01-Sep-2011 13:37:15 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj0203.example.com:4444.
      01-Sep-2011 13:37:40 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1201.example.com:4444.
      01-Sep-2011 13:37:58 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1201.example.com:4444.
      01-Sep-2011 13:38:16 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1201.example.com:4444.
      01-Sep-2011 13:38:34 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1202.example.com:4444.
      01-Sep-2011 13:38:45 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1202.example.com:4444.
      01-Sep-2011 13:38:59 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1202.example.com:4444.
      01-Sep-2011 13:39:21 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1204.example.com:4444.
      01-Sep-2011 13:39:35 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1204.example.com:4444.
      01-Sep-2011 13:39:50 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1204.example.com:4444.
      01-Sep-2011 13:40:08 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj0205.example.com:4444.
      01-Sep-2011 13:40:25 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj0205.example.com:4444.
      01-Sep-2011 13:40:35 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj0205.example.com:4444.
      01-Sep-2011 13:40:49 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1203.example.com:4444.
      01-Sep-2011 13:41:00 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1203.example.com:4444.
      01-Sep-2011 13:41:21 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1203.example.com:4444.
      01-Sep-2011 13:41:40 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj1205.example.com:4444.
      01-Sep-2011 13:41:58 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj1205.example.com:4444.
      01-Sep-2011 13:42:12 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj1205.example.com:4444.
      01-Sep-2011 13:42:30 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj0204.example.com:4444.
      01-Sep-2011 13:42:47 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj0204.example.com:4444.
      01-Sep-2011 13:43:08 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj0204.example.com:4444.
      01-Sep-2011 13:43:32 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=admin data on opendj0202.example.com:4444.
      01-Sep-2011 13:43:46 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain cn=schema on opendj0202.example.com:4444.
      01-Sep-2011 13:44:03 org.opends.server.tools.dsreplication.ReplicationCliMain removeReferencesInServer
      INFO: Updating references in domain dc=example,dc=com on opendj0202.example.com:4444.

      The cause looks to be the numerous Thread.sleep() calls in dsreplication main. A better approach is to use a persistent search based notification mechanism.

        Attachments

          Activity

            People

            • Assignee:
              matthew Matthew Swift
              Reporter:
              matthew Matthew Swift
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: