Replication ignores since parameter if checkpoints are disabled
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
从 replicate.to 路径开始,使用 checkpoint 和 since 选项,然后在 Chrome 的网络日志中针对 idb 适配器和 CouchDB 重现该请求。跟踪禁用检查点后为何会请求 sequence 0;当 checkpoint 为 false 时能够遵守提供的 since 序列,并覆盖报告的情况,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Issue
When disabling replication checkpoints the since parameter is ignored. This is not indicated on the documentation and prevents me from managing my own replication checkpoints unless I also leave in redundant default checkpoints
Info
- Environment: browser
- Platform: Chrome
- Adapter: idb
- Server: CouchDB
Reproduce
const localDb = new PouchDB('testdb');
const remoteDb = new PouchDB('https://sync.server.com:5984/testdb')
remoteDb.replicate.to(localDb, {
live: true,
retry: true,
since: '390525-g1AAAACheJzLYWBgYMpgTmEQTM4vTc5ISXIwNDLXMwBCwxyQVCJDUv3___-zMpiTGJg-fM8FirGbJVkYmFomY9ODx6Q8FiDJ0ACk_sMMZGZpAxtonmiZlGiO1cAsAI_hKv0',
checkpoint: false,
})
Check the network log and you will see it requests changes from sequence 0 rather than 390525
- 主要语言
- JavaScript
- 星标
- 17.6k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/pouchdb 的其他 Issue
-
elemMatch throws TypeError: value is null if array has null element可能已有人在做 @henyanagar 于 147 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 22/100
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 65/100
相似的 Issue
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish step可能已有人在做 @albertteoh 今天认领。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 85/100
jaegertracing/jaeger-ui#4739 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 74/100
keepassxreboot/keepassxc-browser#3159 · 1 条评论 ·
-
Add: ESP 2 RS未关闭approved check:passed feeds:add
难度 1/5 1 小时以内 新手友好度 67/100
-
v6: OTP input keeps the rest of a selection when you type over it可能已有人在做 @thejesh23 今天认领。 未关闭bug confirmed has-pr js v6
难度 2/5 1-3 小时 新手友好度 82/100
twbs/bootstrap#43323 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复