Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3008

Master-Master Replication fails in CouchDB 1.6.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Replication
    • None

    Description

      After initiating the replication in both the Masters, for the first few minutes replication was successful. But, after sometime, the connection closes. I see that COUCHDB-2834 has a fix but it is not for version CouchDB 1.6.0. Here is the Replication detail

      Replication `"80b3311cc764e56900e704938f84727b+continuous"` is using:
      4 worker processes
      a worker batch size of 500
      20 HTTP connections
      a connection timeout of 30000 milliseconds
      10 retries per request
      socket options are: [

      {keepalive,true}

      ,

      {nodelay,false}

      ]
      source start sequence 21

      Here is the error log after the connection is closed

        • Reason for termination ==
        • {http_request_failed,"PUT",
          "http://<HOST>/db_rx_util/<db_name>/_local/<ref_id>",
          {error, {error,connection_closing}}}

          [Tue, 19 Apr 2016 00:29:11 GMT] [error] [<0.282.0>] {error_report,<0.30.0>,
          {<0.282.0>,crash_report,
          [[{initial_call,
          {couch_replicator_worker,init,['Argument__1']}},
          {pid,<0.282.0>},
          {registered_name,[]},
          {error_info,
          {exit,
          {http_request_failed,"PUT",
          "http://<HOST>/db_rx_util/<db_name>/_local/<ref_id>",
          {error,{error,connection_closing}

          }},
          [

          {gen_server,terminate,6}

          ,

          {proc_lib,init_p_do_apply,3}

          ]}},

          {ancestors, [<0.266.0>,couch_replicator_job_sup, couch_primary_services,couch_server_sup,<0.31.0>]}

          ,

          {messages,[]},
          {links,[<0.283.0>]},
          {dictionary,[{last_stats_report,{1461,25719,629825}}]},
          {trap_exit,true},
          {status,running},
          {heap_size,1597},
          {stack_size,24},
          {reductions,578}],
          [{neighbour,
          [{pid,<0.283.0>},
          {registered_name,[]},
          {initial_call,{erlang,apply,2}},
          {current_function,
          {couch_replicator_worker,queue_fetch_loop,5}},
          {ancestors,[]},
          {messages,[]}

          ,

          {links,[<0.282.0>]}

          ,
          {dictionary,
          [{last_stats_report,{1461,25719,629899}}]},

          {trap_exit,false}

          ,

          {status,waiting}

          ,

          {heap_size,2584}

          ,

          {stack_size,10}

          ,

          {reductions,1181}

          ]}]]}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            karthiosx@outlook.com Karthikeyan Alagarswamy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: