Re: [Neo4j] Lucene index recovery

2011-10-31 Thread Johan Svensson
You could configure the lucene data source to auto rotate logs more
frequently. If logs are large recovery takes longer time.

-Johan

On Mon, Oct 17, 2011 at 11:37 PM, Nuo Yan yan@gmail.com wrote:
 What if in production due to whatever reason the neo4j server died and in
 the case people have to start up a new server with the current snapshot of
 data (which would be data from a non-clean shut down). In such case, I don't
 think it's acceptable to table lots of time (hours for large indices) to
 bring the server back. Is there a best practice here?

 Thanks,
 Nuo

 On Thu, Sep 1, 2011 at 8:19 AM, Peter Neubauer 
 peter.neuba...@neotechnology.com wrote:

 Dima,
 are you shutting down your database correctly? Make sure you can
 database.shutdown() and wait for it to finish ...

 Cheers,

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 http://www.neo4j.org               - Your high performance graph database.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.


 On Thu, Sep 1, 2011 at 1:31 PM, Dima Gutzeit dima.gutz...@mailvision.com
 wrote:

  Dear list members,
 
  Each time I restart my server based on Neo4J I can see this in the logs:
 
  Sep 1, 2011 7:23:17 PM
  org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
  doInternalRecovery
  INFO: Non clean shutdown detected on log
 [/opt/data/nioneo_logical.log.2].
  Recovery started ...
  Sep 1, 2011 7:23:18 PM
  org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
  doInternalRecovery
  INFO: Non clean shutdown detected on log [/opt/data/index/lucene.log.1].
  Recovery started ...
 
  Operation which takes time ... lots of time.
 
  What is the correct way of preventing that when restarting ?
 
  Thanks in advance.
 
  Regards,
  Dima Gutzeit.
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Lucene index recovery

2011-10-01 Thread Mattias Persson
It might be that you're not shutting down the server correctly (bin/neo4j
stop) or that it's shut down at the same time as there are transactions
running. Could you supply your data/graph.db/messages.log to me or look in
it to see if there are any lines containing:

Close invoked with

An example:

Close invoked with 3 running transaction(s)

2011/9/1 Peter Neubauer peter.neuba...@neotechnology.com

 Dima,
 are you shutting down your database correctly? Make sure you can
 database.shutdown() and wait for it to finish ...

 Cheers,

 /peter neubauer

 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer

 http://www.neo4j.org   - Your high performance graph database.
 http://startupbootcamp.org/- Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.


 On Thu, Sep 1, 2011 at 1:31 PM, Dima Gutzeit dima.gutz...@mailvision.com
 wrote:

  Dear list members,
 
  Each time I restart my server based on Neo4J I can see this in the logs:
 
  Sep 1, 2011 7:23:17 PM
  org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
  doInternalRecovery
  INFO: Non clean shutdown detected on log
 [/opt/data/nioneo_logical.log.2].
  Recovery started ...
  Sep 1, 2011 7:23:18 PM
  org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
  doInternalRecovery
  INFO: Non clean shutdown detected on log [/opt/data/index/lucene.log.1].
  Recovery started ...
 
  Operation which takes time ... lots of time.
 
  What is the correct way of preventing that when restarting ?
 
  Thanks in advance.
 
  Regards,
  Dima Gutzeit.
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Lucene index recovery

2011-09-01 Thread Dima Gutzeit
Dear list members,

Each time I restart my server based on Neo4J I can see this in the logs:

Sep 1, 2011 7:23:17 PM
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
doInternalRecovery
INFO: Non clean shutdown detected on log [/opt/data/nioneo_logical.log.2].
Recovery started ...
Sep 1, 2011 7:23:18 PM
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
doInternalRecovery
INFO: Non clean shutdown detected on log [/opt/data/index/lucene.log.1].
Recovery started ...

Operation which takes time ... lots of time.

What is the correct way of preventing that when restarting ?

Thanks in advance.

Regards,
Dima Gutzeit.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Lucene index recovery

2011-09-01 Thread Peter Neubauer
Dima,
are you shutting down your database correctly? Make sure you can
database.shutdown() and wait for it to finish ...

Cheers,

/peter neubauer

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org   - Your high performance graph database.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.


On Thu, Sep 1, 2011 at 1:31 PM, Dima Gutzeit dima.gutz...@mailvision.comwrote:

 Dear list members,

 Each time I restart my server based on Neo4J I can see this in the logs:

 Sep 1, 2011 7:23:17 PM
 org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
 doInternalRecovery
 INFO: Non clean shutdown detected on log [/opt/data/nioneo_logical.log.2].
 Recovery started ...
 Sep 1, 2011 7:23:18 PM
 org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
 doInternalRecovery
 INFO: Non clean shutdown detected on log [/opt/data/index/lucene.log.1].
 Recovery started ...

 Operation which takes time ... lots of time.

 What is the correct way of preventing that when restarting ?

 Thanks in advance.

 Regards,
 Dima Gutzeit.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user