You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2023/01/18 18:08:30 UTC
[GitHub] [couchdb] nickva commented on issue #4385: replication restart from start after server restart
nickva commented on issue #4385:
URL: https://github.com/apache/couchdb/issues/4385#issuecomment-1387497652
@tophe thanks for your report.
I had tried setting up a local replication with the 3.3.1 release and I couldn't not reproduce the same issue.
I had created database a and b then continuous replication a ->b. Added 3 docs to a and they were replicated to b. In about 10-30 seconds the replication checkpointed.
```
[notice] 2023-01-18T17:56:53.418762Z couchdb@127.0.0.1 <0.2488.0> 95114e5b09 localhost:5984 127.0.0.1 adm POST /_replicator 201 ok 63
[notice] 2023-01-18T17:56:53.434113Z couchdb@127.0.0.1 <0.452.0> -------- couch_replicator_scheduler: Job {"0a62088f656e39570a8b89ff61c55a32","+continuous"} started as <0.3587.0>
[notice] 2023-01-18T17:56:54.160151Z couchdb@127.0.0.1 <0.3587.0> -------- Starting replication 0a62088f656e39570a8b89ff61c55a32+continuous (http://localhost:5984/a/ -> http://localhost:5984/b/) from doc _replicator:a_b worker_procesess:4 worker_batch_size:500 session_id:3835f379fc390834e23283ac1ee96921
[notice] 2023-01-18T17:56:54.160194Z couchdb@127.0.0.1 <0.3587.0> -------- Document `a_b` triggered replication `0a62088f656e39570a8b89ff61c55a32+continuous`
[notice] 2023-01-18T17:57:04.154748Z couchdb@127.0.0.1 <0.3508.0> adf93f2899 localhost:5984 127.0.0.1 adm GET /a/_changes?feed=continuous&style=all_docs&since=0&timeout=10000 200 ok 10002
[notice] 2023-01-18T17:57:10.375115Z couchdb@127.0.0.1 <0.3848.0> f244ad9969 127.0.0.1:5984 127.0.0.1 adm PUT /a/doc1 201 ok 45
[notice] 2023-01-18T17:57:10.380111Z couchdb@127.0.0.1 <0.3508.0> b9e856c7f2 localhost:5984 127.0.0.1 adm POST /b/_revs_diff 200 ok 3
[notice] 2023-01-18T17:57:10.383908Z couchdb@127.0.0.1 <0.3508.0> dbd855b8ef localhost:5984 127.0.0.1 adm POST /a/_bulk_get?latest=true&revs=true&attachments=false 200 ok 3
[notice] 2023-01-18T17:57:10.429121Z couchdb@127.0.0.1 <0.3508.0> 2d0a333f54 localhost:5984 127.0.0.1 adm POST /b/_bulk_docs 201 ok 45
[notice] 2023-01-18T17:57:13.487160Z couchdb@127.0.0.1 <0.3934.0> a9b147a109 127.0.0.1:5984 127.0.0.1 adm PUT /a/doc2 201 ok 45
[notice] 2023-01-18T17:57:13.489662Z couchdb@127.0.0.1 <0.3508.0> 63619c5d6c localhost:5984 127.0.0.1 adm POST /b/_revs_diff 200 ok 1
[notice] 2023-01-18T17:57:13.491367Z couchdb@127.0.0.1 <0.3508.0> c0cacc79b7 localhost:5984 127.0.0.1 adm POST /a/_bulk_get?latest=true&revs=true&attachments=false 200 ok 1
[notice] 2023-01-18T17:57:13.535906Z couchdb@127.0.0.1 <0.3508.0> 2d41df816b localhost:5984 127.0.0.1 adm POST /b/_bulk_docs 201 ok 44
[notice] 2023-01-18T17:57:16.258849Z couchdb@127.0.0.1 <0.3996.0> 2d94c3294d 127.0.0.1:5984 127.0.0.1 adm PUT /a/doc3 201 ok 47
[notice] 2023-01-18T17:57:16.261490Z couchdb@127.0.0.1 <0.3508.0> e31b4295ae localhost:5984 127.0.0.1 adm POST /b/_revs_diff 200 ok 1
[notice] 2023-01-18T17:57:16.263704Z couchdb@127.0.0.1 <0.3508.0> ff5130158b localhost:5984 127.0.0.1 adm POST /a/_bulk_get?latest=true&revs=true&attachments=false 200 ok 2
[notice] 2023-01-18T17:57:16.308776Z couchdb@127.0.0.1 <0.3508.0> cca6245826 localhost:5984 127.0.0.1 adm POST /b/_bulk_docs 201 ok 44
[notice] 2023-01-18T17:57:24.150590Z couchdb@127.0.0.1 <0.3508.0> 28eb6a2108 localhost:5984 127.0.0.1 adm POST /b/_ensure_full_commit 201 ok 1
[notice] 2023-01-18T17:57:24.153638Z couchdb@127.0.0.1 <0.4101.0> 058625e2ed localhost:5984 127.0.0.1 adm POST /a/_ensure_full_commit 201 ok 1
[notice] 2023-01-18T17:57:24.153885Z couchdb@127.0.0.1 <0.3587.0> -------- recording a checkpoint for `http://localhost:5984/a/` -> `http://localhost:5984/b/` at source update_seq <<"3-g1AAAACbeJzLYWBgYMpgTmEQTM4vTc5ISXIwNDLXMwBCwxyQVCJDUv3___-zMpgTmXKBAuwpSZYpKYZG2DTgMSaPBUgyNACp_1DTGMGmGSUbpJqlpWLTlwUAQGgo3g">>
[notice] 2023-01-18T17:57:24.201998Z couchdb@127.0.0.1 <0.4101.0> 755dff440c localhost:5984 127.0.0.1 adm PUT /a/_local/0a62088f656e39570a8b89ff61c55a32 201 ok 44
[notice] 2023-01-18T17:57:24.247853Z couchdb@127.0.0.1 <0.4101.0> d74241de62 localhost:5984 127.0.0.1 adm PUT /b/_local/0a62088f656e39570a8b89ff61c55a32 201 ok 45
```
Then I stopped the server and restarted it.
```
[notice] 2023-01-18T17:59:42.941977Z couchdb@127.0.0.1 <0.463.0> -------- couch_replicator_scheduler: Job {"0a62088f656e39570a8b89ff61c55a32","+continuous"} started as <0.604.0>
[notice] 2023-01-18T17:59:47.455475Z couchdb@127.0.0.1 <0.621.0> 6ac77267da localhost:5984 127.0.0.1 undefined POST /_session 200 ok 22
[notice] 2023-01-18T17:59:47.486406Z couchdb@127.0.0.1 <0.621.0> cdc7a9e140 localhost:5984 127.0.0.1 adm GET /a/ 200 ok 30
[notice] 2023-01-18T17:59:47.487452Z couchdb@127.0.0.1 <0.621.0> 67d6faf300 localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
[notice] 2023-01-18T17:59:47.490253Z couchdb@127.0.0.1 <0.621.0> f51f7e3d93 localhost:5984 127.0.0.1 adm GET /b/ 200 ok 2
[notice] 2023-01-18T17:59:47.491681Z couchdb@127.0.0.1 <0.621.0> 3590309197 localhost:5984 127.0.0.1 adm GET /a/ 200 ok 1
[notice] 2023-01-18T17:59:47.492940Z couchdb@127.0.0.1 <0.621.0> 4e4b45f4cd localhost:5984 127.0.0.1 adm GET /b/ 200 ok 1
[notice] 2023-01-18T17:59:47.494291Z couchdb@127.0.0.1 <0.621.0> bdecdebada localhost:5984 127.0.0.1 adm GET /a/_local/0a62088f656e39570a8b89ff61c55a32 200 ok 1
[notice] 2023-01-18T17:59:47.495478Z couchdb@127.0.0.1 <0.621.0> 6fd838bdff localhost:5984 127.0.0.1 adm GET /b/_local/0a62088f656e39570a8b89ff61c55a32 200 ok 1
[notice] 2023-01-18T17:59:47.507424Z couchdb@127.0.0.1 <0.622.0> 9347dc859c localhost:5984 127.0.0.1 adm GET /a/ 200 ok 1
[notice] 2023-01-18T17:59:47.507672Z couchdb@127.0.0.1 <0.604.0> -------- Starting replication 0a62088f656e39570a8b89ff61c55a32+continuous (http://localhost:5984/a/ -> http://localhost:5984/b/) from doc _replicator:a_b worker_procesess:4 worker_batch_size:500 session_id:f3d85f800e7e5346b0ec12cd82fe5e76
[notice] 2023-01-18T17:59:47.507709Z couchdb@127.0.0.1 <0.604.0> -------- Document `a_b` triggered replication `0a62088f656e39570a8b89ff61c55a32+continuous`
...
[notice] 2023-01-18T17:59:57.501970Z couchdb@127.0.0.1 <0.621.0> 0bc5cc2eeb localhost:5984 127.0.0.1 adm GET /a/_changes?feed=continuous&style=all_docs&since=3-g1AAAACbeJzLYWBgYMpgTmEQTM4vTc5ISXIwNDLXMwBCwxyQVCJDUv3___-zMpgTmXKBAuwpSZYpKYZG2DTgMSaPBUgyNACp_1DTGMGmGSUbpJqlpWLTlwUAQGgo3g&timeout=10000 200 ok 10003
```
After restart, it re-read the `_local/...` checkpoints and continued on starting `_changes` with `since=3-g1AAAAC...`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org