How roll back works in janus graph, will it roll back the storage write in one transaction


Lighter <yangch...@...>
 

Hi, for below sample code.  storage backend is Hbase,  "name" is used as  index, it will at least has two rows update: but what if index update succeed while vertex update failed(throw exception). when we call rollback, Will it roll back the index write to storage? 

try {

    user = graph.addVertex()
    user.property("name", name)
    graph.tx().commit()
} catch (Exception e) {
    //Recover, retry,  or return error message
    println(e.getMessage())
    graph.tx().rollback()   // <------- Added line 
}

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.