我可以使用以下方法连接到ArangoDB集群的协调员:
patch
一切正常(CRUD,查询等),除非我尝试创建索引时出现“锁定超时”错误:
sudo arangosh --server.endpoint tcp://10.32.0.15:1027
当我尝试通过HTTP创建索引时出现相同的错误:
10.32.0.15:1027@_system> db.imdb_vertices.ensureIndex({ type: "skiplist", fields: ["name"] })
JavaScript exception in file '/usr/share/arangodb3/js/client/modules/@arangodb/arangosh.js' at 100,7: ArangoError 18: : lock timeout
! throw error;
! ^
stacktrace: ArangoError: : lock timeout
at Object.exports.checkRequestResult (/usr/share/arangodb3/js/client/modules/@arangodb/arangosh.js:98:21)
at ArangoCollection.ensureIndex (/usr/share/arangodb3/js/client/modules/@arangodb/arango-collection.js:738:12)
at <shell command>:1:18
10.32.0.15:1027@_system>
从文档中,我看到“当超时等待锁定时会被引发。”被列为错误原因。但是,我无法找到解决方案。任何提示?
谢谢!