Re: [Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-04-08 Thread Johan Svensson
Hi, I had a look at this and can not figure out why -1 is returned. When running the kernel in normal (write) mode the return value of number of ids in use will only be correct if all previous shutdowns have executed cleanly. This is an optimization to reduce the time spent in recovery

Re: [Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-04-06 Thread Tobias Ivarsson
Sorry, we have not had time to look into that yet. I'll let you know when we have. On Mon, Apr 5, 2010 at 12:31 PM, Laurent Laborde kerdez...@gmail.comwrote: Any news ? -- Ker2x On Fri, Mar 26, 2010 at 12:05 PM, Tobias Ivarsson tobias.ivars...@neotechnology.com wrote: Ok, thanks. We'll

Re: [Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-04-05 Thread Laurent Laborde
Any news ? -- Ker2x On Fri, Mar 26, 2010 at 12:05 PM, Tobias Ivarsson tobias.ivars...@neotechnology.com wrote: Ok, thanks. We'll look into it. On Fri, Mar 26, 2010 at 11:49 AM, Laurent Laborde kerdez...@gmail.comwrote: something between 100 millions and 1 billions, i guess. the DB contain

[Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-03-26 Thread Laurent Laborde
my code do a : System.out.println(Number of nodes : + neo.getConfig().getNeoModule().getNodeManager().getNumberOfIdsInUse(Node.class)); it print : Number of nodes : -1 why does it print -1 ? how can i count node ? thank you :) -- Laurent ker2x Laborde Sysadmin DBA at

Re: [Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-03-26 Thread Tobias Ivarsson
If you have a large number of nodes it could be a truncation error from long to int somewhere, how many nodes to you estimate that you have? It is a bug so we will fix it, but if we know the approximate estimated size it would help in finding the cause. /Tobias On Fri, Mar 26, 2010 at 7:59 AM,

Re: [Neo] getNumberOfIdsInUse(Node.class)) return -1

2010-03-26 Thread Tobias Ivarsson
Ok, thanks. We'll look into it. On Fri, Mar 26, 2010 at 11:49 AM, Laurent Laborde kerdez...@gmail.comwrote: something between 100 millions and 1 billions, i guess. the DB contain the result of my collatz code from 1 to 100 millions. -- Ker2x On Fri, Mar 26, 2010 at 11:40 AM, Tobias