com.thinkaurelius.titan.core.TitanException:无法从存储中获取新的ID块

时间:2014-02-15 06:57:43

标签: titan

我正在运行一个简单的程序

    TitanGraph bg = TitanFactory.open("/home/titan-all-0.4.2/conf/titan-cassandra-es.properties");
    IdGraph g = new IdGraph(bg, true, false);

    Vertex v = g.addVertex("xyz132456");

    g.commit();       

此处之前没有顶点xyz132456存在,但我得到以下异常。我经常得到这个例外。我的titan服务器(0.4.2)配置了所有默认设置,因为我只是测试简单的操作。

253  [main] INFO  org.elasticsearch.node  - [Chtylok] version[0.90.5], pid[4015], build[c8714e8/2013-09-17T12:50:20Z]
253  [main] INFO  org.elasticsearch.node  - [Chtylok] initializing ...
260  [main] INFO  org.elasticsearch.plugins  - [Chtylok] loaded [], sites []
2303 [main] INFO  org.elasticsearch.node  - [Chtylok] initialized
2303 [main] INFO  org.elasticsearch.node  - [Chtylok] starting ...
2309 [main] INFO  org.elasticsearch.transport  - [Chtylok] bound_address {local[1]}, publish_address {local[1]}
2316 [elasticsearch[Chtylok][clusterService#updateTask][T#1]] INFO  org.elasticsearch.cluster.service  - [Chtylok] new_master [Chtylok][1][local[1]]{local=true}, reason: local-disco-initial_connect(master)
2325 [main] INFO  org.elasticsearch.discovery  - [Chtylok] elasticsearch/1
2420 [main] INFO  org.elasticsearch.http  - [Chtylok] bound_address {inet[/0:0:0:0:0:0:0:0:9201]}, publish_address {inet[/10.0.0.5:9201]}
2420 [main] INFO  org.elasticsearch.node  - [Chtylok] started
2987 [elasticsearch[Chtylok][clusterService#updateTask][T#1]] INFO  org.elasticsearch.gateway  - [Chtylok] recovered [1] indices into cluster_state
3234 [main] INFO  com.thinkaurelius.titan.diskstorage.Backend  - Initiated backend operations thread pool of size 2
3542 [main] INFO  com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration  - Configuring edge store cache size: 201476830
5105 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [1000 ms]
6105 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [2000 ms]
7105 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [3000 ms]
8106 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [4001 ms]
9106 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [5001 ms]
10106 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [6001 ms]
11107 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [7002 ms]
12107 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [8002 ms]
13107 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [9002 ms]
14108 [main] WARN  com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool  - Waiting for id renewal thread on partition 2 [10003 ms]
Exception in thread "Thread-4" com.thinkaurelius.titan.core.TitanException: Could not acquire new ID block from storage
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool.renewBuffer(StandardIDPool.java:117)
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool.access$100(StandardIDPool.java:14)
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool$IDBlockThread.run(StandardIDPool.java:172)
Caused by: com.thinkaurelius.titan.diskstorage.PermanentStorageException: Permanent failure in storage backend
    at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftKeyColumnValueStore.convertException(CassandraThriftKeyColumnValueStore.java:311)
    at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftKeyColumnValueStore.getNamesSlice(CassandraThriftKeyColumnValueStore.java:196)
    at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftKeyColumnValueStore.getSlice(CassandraThriftKeyColumnValueStore.java:120)
    at com.thinkaurelius.titan.diskstorage.idmanagement.ConsistentKeyIDManager$1.call(ConsistentKeyIDManager.java:106)
    at com.thinkaurelius.titan.diskstorage.idmanagement.ConsistentKeyIDManager$1.call(ConsistentKeyIDManager.java:103)
    at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:90)
    at com.thinkaurelius.titan.diskstorage.idmanagement.ConsistentKeyIDManager.getCurrentID(ConsistentKeyIDManager.java:103)
    at com.thinkaurelius.titan.diskstorage.idmanagement.ConsistentKeyIDManager.getIDBlock(ConsistentKeyIDManager.java:159)
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool.renewBuffer(StandardIDPool.java:111)
    ... 2 more
Caused by: TimedOutException()
    at org.apache.cassandra.thrift.Cassandra$multiget_slice_result$multiget_slice_resultStandardScheme.read(Cassandra.java:11623)
    at org.apache.cassandra.thrift.Cassandra$multiget_slice_result$multiget_slice_resultStandardScheme.read(Cassandra.java:11560)
    at org.apache.cassandra.thrift.Cassandra$multiget_slice_result.read(Cassandra.java:11486)
    at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
    at org.apache.cassandra.thrift.Cassandra$Client.recv_multiget_slice(Cassandra.java:701)
    at org.apache.cassandra.thrift.Cassandra$Client.multiget_slice(Cassandra.java:685)
    at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftKeyColumnValueStore.getNamesSlice(CassandraThriftKeyColumnValueStore.java:176)
    ... 9 more
Exception in thread "main" java.lang.IllegalArgumentException: -1
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool.nextBlock(StandardIDPool.java:88)
    at com.thinkaurelius.titan.graphdb.database.idassigner.StandardIDPool.nextID(StandardIDPool.java:134)
    at com.thinkaurelius.titan.graphdb.database.idassigner.VertexIDAssigner.assignID(VertexIDAssigner.java:269)
    at com.thinkaurelius.titan.graphdb.database.idassigner.VertexIDAssigner.assignID(VertexIDAssigner.java:155)
    at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.assignID(StandardTitanGraph.java:226)
    at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.addPropertyInternal(StandardTitanTx.java:521)
    at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.setProperty(StandardTitanTx.java:552)
    at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.addProperty(StandardTitanTx.java:495)
    at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.addVertex(StandardTitanTx.java:345)
    at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsTransaction.addVertex(TitanBlueprintsTransaction.java:72)
    at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.addVertex(TitanBlueprintsGraph.java:157)
    at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.addVertex(TitanBlueprintsGraph.java:24)
    at com.tinkerpop.blueprints.util.wrappers.id.IdGraph.addVertex(IdGraph.java:131)
    at newpackage.CityBizzStarting.main(CityBizzStarting.java:24)

0 个答案:

没有答案
相关问题