Aerospike 扫描返回状态为“done (abandoned-response-timeout)”

问题描述

有时返回的数据少于我们的 aerospike 数据库中实际可用的数据。检查日志时,注意到以下条目:

INFO (scan): (scan.c:614) starting basic scan job {id} {namespace:set} priority 2,sample-pct 100
INFO (scan): (scan.c:692) finished basic scan job {id} (-2)

如果我们通过 show scans 检查扫描,我们会在表中看到以下条目:

trid: {id} | job-progress: 49.78 | job-type: basic | status: "done (abandoned-response-timeout)"

根据状态我们运行到超时,这就是为什么没有返回所有数据的原因。然而,在这种情况下,我们宁愿期待错误消息而不是返回较少的数据。

我们正在运行 aerospike 版本 3.15.1.4,其中包含三个 aerospike 节点/吊舱。我们正在使用 go-client 与 Aerospike 数据库进行交互。

有没有办法增加超时时间?

解决方法

Aerospike 现已发布 5.6.0.9 版。请升级,您将经历中间跳转版本以获取最新版本,因此需要仔细计划。扫描已经过大修。引入了 Set-index 是为了真正加快对包含其他大集合或大量记录的非常大的命名空间中记录数量非常少的集合的扫描速度。