Titan data corruption

2019-05-21 18:17发布

问题:

I get an exception when calling com.tinkerpop.blueprints.Edge.getLabel on some vertex edges :

 java.lang.IllegalStateException: Could not find type for id: 630
        at com.google.common.base.Preconditions.checkState(Preconditions.java:200)
        at com.thinkaurelius.titan.graphdb.types.vertices.TitanTypeVertex.getName(TitanTypeVertex.java:30)
        at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx$VertexConstructor.get(StandardTitanTx.java:321)

I can solve this issue by removing all vertex and start over, but we obviously don't want to do that in production.

This error seems to occur when there is a data corruption but I don't have any idea why it happens : I don't know if it's data which are corruped or type schemas.

Does anyone know the possible causes for this error/corruption and know who it can be repaired softly?

The backend I’m using is cassandra.