this is how i am adding vertices
for(int j=0;j<1000;j++)
{
for(int i=0;i<2000;i++){
String service = "service"+j+""+i,place="myplace,st,cnt";
int rnd=0;
if(i%2000==0)
{
service = "service"+j+""+i;
rnd=new Random().nextInt(6);
place="myplace"+j+""+i+",st"+j+""+i+",cnt"+j+""+i;
}
Vertex newPage = g.addVertex(null);
newPage.setProperty(PageVertex.pageName.toString(), "This is page title "+j+""+i);
newPage.setProperty(PageVertex.pageCity.toString(), place.split(",")[0]);
newPage.setProperty(PageVertex.pageState.toString(), place.split(",")[1]);
newPage.setProperty(PageVertex.pageCountry.toString(), place.split(",")[2]);
Edge addEdge = newPage.addEdge("hasLevel2Tag", v);
addEdge.setProperty("el2Tag_service", service);
addEdge.setProperty("epgl2_place", place);
addEdge.setProperty(MigificConstants.EdgeLabels.edgePlace.toString(), gs[rnd]);
addEdge.setProperty("time", new Date().getTime());
}
g.commit();
}
its always throwing
22279 [main] ERROR com.thinkaurelius.titan.graphdb.database.StandardTitanGraph - Could not commit transaction [9] due to storage exception in commit
com.thinkaurelius.titan.core.TitanException: Could not execute operation due to backend exception
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:44)
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.cache.CacheTransaction.persist(CacheTransaction.java:86)
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.cache.CacheTransaction.flushInternal(CacheTransaction.java:134)
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.cache.CacheTransaction.commit(CacheTransaction.java:197)
at com.thinkaurelius.titan.diskstorage.BackendTransaction.commitStorage(BackendTransaction.java:117)
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.commit(StandardTitanGraph.java:625)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.commit(StandardTitanTx.java:1228)
at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.commit(TitanBlueprintsGraph.java:57)