In principle your code looks ok,

It's not clear which code/database your neoUtil.findParentNode("Test"); uses
and what DataSource.getGraphDBAPI() does

how much heap do you provide to your application?


> Am 21.03.2015 um 20:04 schrieb S C Kannan <[email protected]>:
> 
> Hi Michael,
> 
> Thanks for the response.  I have added the exact fail case scenario with 
> codes and configuration as  follows,
> 
> We are using single threaded only.
> 
> I am using Neo4j 1.9.8 Embedded Database. The steps used to create node are 
> as follows,
> 
> 1. Start the Transaction
> 2. Create the Node.
> 3. Set few properties to the node
> 4. Create two relationships with other nodes
I see only one relationship-creation in your code
> 5. Commit the transaction
> 6. Print the Node Id (eg. 13456)
where is that?
> 7. Fetch the particular Node with the Node Id above with following query. 
> START root=node(13456) RETURN root;But the following error throws
I think somehow you either leak transactions so you still have a write lock at 
the node(s) (probably the parent-node) which is not unlocked yet and your 
second tx hangs on the same lock.
Do you have outer transactions that you don't show here?

> 
>     EntityNotFoundException: Node 13456 not found
> 
> When I try to do the above transaction again, the program hangs at point no 4.
> 
> The Java Class used to create node with property and relation ship are as 
> follows,
> 
>     Transaction trx = DataSource.getGraphDBAPI().beginTx();  
>     try{
>         Node ndeTest= DataSource.getGraphDB().createNode();  
>         ndeTest.setId("1");  
>         ndeTest.setName("Test API");  
>         ndeTest.setURL("www.test.com");  
>         Node parentNode = neoUtil.findParentNode("Test");
>         parentNode.createRelationshipTo(ndeTest,        
>         KnoxxiRelationshipType.API);  
>         ndeTest.setStatus("1");
>         trx.success();
>     }catch (Exception e) {
>         trx.failure();
>         log.error("Test Node Creation Failed," + e.getLocalizedMessage);
>     } finally {trx.finish();} 
>     log.info("Node Id : "+ ndeTest.getId());
> 
> The neo4j Configuration are as follows:
> 
>     node_auto_indexing=true
>     cache_type=gcr
>     nodestore_propertystore_mapped_memory_size=150M
>     nodestore_mapped_memory_size=100M
>     relationshipstore_mapped_memory_size=500M
>     strings_mapped_memory_size=150M
>     relationship_auto_indexing=true
> 
> The last few lines on neo4j message.log file are as follows:
> 
> 
>     2015-03-20 09:25:08.030+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: GC 
> Monitor: Application threads blocked for an additional 385ms [total block 
> time: 5.365s]
>     2015-03-20 09:25:25.766+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: GC 
> Monitor: Application threads blocked for an additional 395ms [total block 
> time: 5.76s]
> 
> Please guide me if i miss something out.
> 
> Best Regards,
> Kannan S C
> 
> On Friday, 20 March 2015 10:27:14 UTC, Michael Hunger wrote:
> Please share you code, best a failing test, neo4j version, data model.
> Are you running single threaded or multi threaded, ...
> 
> M
> 
>> Am 20.03.2015 um 11:12 schrieb S C Kannan <[email protected] <javascript:>>:
>> 
>> Hi Experts,
>> 
>> I am facing an issue which was stated as follows,
>> 
>> 1. I can able to use cipher query to fetch records. But when i save a new 
>> node and Create relationship to the someother node, Neo4j hangs and nothing 
>> happens after that. There are no error logs on  Message.log.
>> 
>> Please help to sort this out'
>> 
>> With Regards,
>> Kannan S C
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" 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/d/optout.

Reply via email to