2016-07-15 10 views
1

Ich bin in der Lage an den Koordinator meines ArangoDB Cluster verbinden mit dem folgenden:Sperre Timeout beim Index in ArangoDB Erstellung

sudo arangosh --server.endpoint tcp://10.32.0.15:1027 

Alles funktioniert (CRUD, Abfragen, etc.), außer, wenn ich versuche zu erstellen ein Index erhalte ich eine "Sperre Timeout" Fehler:

10.32.0.15:[email protected]_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:[email protected]_system> 

ich den gleichen Fehler, wenn ich versuche, den Index über HTTP zu erstellen:

$ curl -X POST --data-binary @- --dump - http://10.32.0.15:1027/_api/index?collection=imdb_vertices << EOF 
{ 
    "type" : "skiplist", 
    "fields" : [ 
     "name", 
     "genre" 
    ] 
} 
EOF 

HTTP/1.1 400 Bad Request 
Content-Type: application/json; charset=utf-8 
Server: ArangoDB 
Connection: Keep-Alive 
Content-Length: 71 

{"error":true,"code":400,"errorNum":18,"errorMessage":": lock timeout"} 

Aus den Dokumenten sehe ich "Wird ausgelöst, wenn ein Timeout auf eine Sperre wartet." wird als die Ursache des Fehlers aufgeführt. Ich kann jedoch keine Lösung finden. Irgendwelche Hinweise?

Danke!

Antwort

1

Gelöst here in der ArangoDB Google Group Forum.