Re: Janusgraph embedded multi instance(JVM) data sync issue
Pawan Shriwas
Hi Marc, I have removed cache properties from instances and we already have new transactions for each api operation but still facing stale data issues in other instances for some time. Below is the code which is used for the new transaction for each operation. In my embedded janusgraph service, We always create new translations for each api operation using below code and do commit or rollback at the end of api operation. but sometimes it works and sometimes not. Is it a sync kind of issue which varies between graph instances in multiple services(JVM). // Create graph instance code(once service start) String filePath = ConfigUtils.getString(GraphConstants.GRAPH_FILE_PATH); JanusGraph graphinstance = embeddedConnection.open(filePath); // create transaction code for each api operation JanusgraphTransaction threadedTransaction= graphinstance.getGraphInstance().newTransaction(); // we do commit or rollback at end of each api operation threadedTransaction.commit(); //or threadedTransaction.rollback(); Let me know if anything related to configuration or any code needs to tried for the same. Thanks, Pawan On Fri, Jan 7, 2022 at 1:45 PM <hadoopmarc@...> wrote: Hi Pawan, --
Thanks & Regard PAWAN SHRIWAS |
|