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 [email protected] <0.2488.0> 95114e5b09 
localhost:5984 127.0.0.1 adm POST /_replicator 201 ok 63
   [notice] 2023-01-18T17:56:53.434113Z [email protected] <0.452.0> -------- 
couch_replicator_scheduler: Job 
{"0a62088f656e39570a8b89ff61c55a32","+continuous"} started as <0.3587.0>
   [notice] 2023-01-18T17:56:54.160151Z [email protected] <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 [email protected] <0.3587.0> -------- 
Document `a_b` triggered replication 
`0a62088f656e39570a8b89ff61c55a32+continuous`
   [notice] 2023-01-18T17:57:04.154748Z [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <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 [email protected] <0.463.0> -------- 
couch_replicator_scheduler: Job 
{"0a62088f656e39570a8b89ff61c55a32","+continuous"} started as <0.604.0>
   [notice] 2023-01-18T17:59:47.455475Z [email protected] <0.621.0> 6ac77267da 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 22
   [notice] 2023-01-18T17:59:47.486406Z [email protected] <0.621.0> cdc7a9e140 
localhost:5984 127.0.0.1 adm GET /a/ 200 ok 30
   [notice] 2023-01-18T17:59:47.487452Z [email protected] <0.621.0> 67d6faf300 
localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
   [notice] 2023-01-18T17:59:47.490253Z [email protected] <0.621.0> f51f7e3d93 
localhost:5984 127.0.0.1 adm GET /b/ 200 ok 2
   [notice] 2023-01-18T17:59:47.491681Z [email protected] <0.621.0> 3590309197 
localhost:5984 127.0.0.1 adm GET /a/ 200 ok 1
   [notice] 2023-01-18T17:59:47.492940Z [email protected] <0.621.0> 4e4b45f4cd 
localhost:5984 127.0.0.1 adm GET /b/ 200 ok 1
   [notice] 2023-01-18T17:59:47.494291Z [email protected] <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 [email protected] <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 [email protected] <0.622.0> 9347dc859c 
localhost:5984 127.0.0.1 adm GET /a/ 200 ok 1
   [notice] 2023-01-18T17:59:47.507672Z [email protected] <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 [email protected] <0.604.0> -------- 
Document `a_b` triggered replication 
`0a62088f656e39570a8b89ff61c55a32+continuous`
   ...
   [notice] 2023-01-18T17:59:57.501970Z [email protected] <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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to