Hi, Can someone please help me to find out a solution for this? Any help will be greatly appreciated!
Thanks, Troy On Friday, February 28, 2014 5:25:27 PM UTC+5:30, troy white wrote: > > Hi Luca, > > I am using graphML files to persist data into orientdb distributed > servers(Replication). In the following scenario, the loading graphml file > is failing. > Can you please let me know, committing graphml file in distribution > transactions is an issue in OrientDB 1.6.1? or > Is there any fault in the graphML file? > > Please go through the following scenario. > GraphML File: > > <?xml version="1.0"?> > > <graphml xmlns="http://graphml.graphdrawing.org/xmlns"> > > <key id="NAME" for="node" attr.name="NAME" attr.type="string"/> > > <key id="CLASS_DISCRIMINATOR" for="node" attr.name="CLASS_DISCRIMINATOR" > attr.type="string"/> > > <key id="SQLID" for="node" attr.name="SQLID" attr.type="long"/> > > <key id="HAS_PARENT" for="node" attr.name="HAS_PARENT" > attr.type="string"/> > > <key id="PARENT_ID" for="node" attr.name="PARENT_ID" attr.type="string"/> > > <key id="STATE" for="node" attr.name="STATE" attr.type="string"/> > > <key id="KINDS" for="node" attr.name="KINDS" attr.type="string"/> > > <key id="ICON_TYPE" for="node" attr.name="ICON_TYPE" attr.type="string"/> > > <key id="IP" for="node" attr.name="IP" attr.type="string"/> > > <key id="TABLENAME" for="node" attr.name="TABLENAME" attr.type="string"/> > > <key id="EQUIP_TYPE" for="node" attr.name="EQUIP_TYPE" > attr.type="string"/> > > <key id="AID" for="node" attr.name="AID" attr.type="string"/> > > <key id="UUID" for="node" attr.name="UUID" attr.type="string"/> > > <key id="LINK_TYPE" for="node" attr.name="LINK_TYPE" attr.type="string"/> > > <key id="PARENT_CLASS" for="node" attr.name="PARENT_CLASS" > attr.type="string"/> > > <graph id="ETOSMux" edgedefault="directed"> > > <node id="card"> > > <data key="NAME">RUNTIME</data> > > <data key="SQLID">0</data> > > <data key="HAS_PARENT">true</data> > > <data key="PARENT_CLASS">RUNTIME</data> > > <data key="PARENT_ID">0</data> > > <data key="STATE">RUNTIME</data> > > <data key="KINDS">NODE</data> > > <data key="IP">RUNTIME</data> > > <data key="EQUIP_TYPE">CARD</data> > > <data key="AID">RUNTIME</data> > > </node> > > > > <node id="peer"> > > <data key="UUID">0</data> > > <data key="HAS_PARENT">true</data> > > <data key="PARENT_ID">0</data> > > <data key="STATE">RUNTIME</data> > > <data > key="PARENT_CLASS">com.adtran.persistence.taems.equipment.ADTRAN.MUX.TA5000.NGOETOS.ETOSMuxExt</data> > > <data key="KINDS">LINK</data> > > <data key="LINK_TYPE">PEER</data> > > </node> > > > > <node id="SWITCH_FABRIC"> > > <data key="UUID">0</data> > > <data key="HAS_PARENT">true</data> > > <data key="PARENT_ID">0</data> > > <data key="STATE">RUNTIME</data> > > <data key="KINDS">LINK</data> > > <data key="LINK_TYPE">SWITCH_FABRIC</data> > > </node> > > <edge *id="21"* source="card" target="SWITCH_FABRIC" label="*GEO*"/> > > <edge *id="22"* source="card" target="peer" label="*GEO*"/> > > <edge id="23" source="SWITCH_FABRIC" target="peer" label="NODE2LINK"/> > > </graph> > > </graphml> > > > a. In the above graphml definition the edges (id=21 and id=22) are > having label="GEO". In this scenario replication is not working with > transactions ON. > > b. After inserting this graphml file, the following exception thrown > on retrieving all vertices from db. > > INFO OrientDB Server v1.6.1 is active. > [OServer]com.orientechnologies.orient.core.exception.OTransactionException: > Cannot insert item in mvrb-tree because the transactional item was not > found. > > c. If edge labels are written unique in graphml file (i.e. id=21 > edge label="GEO" and id=22 edge label="GEO_New") then replication is > working with transactions ON. > > d. If edges are removed from the graphML file and persisted only > nodes as batch commit, the node vertices are committed and distributed > properly. And then after, if edges are created by retrieving source and > target vertices from db, then it is working as expected. > > > At all, my requirement is to work distributed transactions for loading > graphml file which includes nodes and edges. > > Can someone please explain what is wrong in my implementation? Is there > any open issue on this scenario? > > > Thanks, > > Troy > > > > > <w:LsdException Loc > ... -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
