-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neo4j >1.9.M03 startup failure #258
Comments
Sorry can't really help you. But when I get time I will see if I can get it working just using the Java libraries (see http://docs.neo4j.org/chunked/preview/ha.html) and then do it from JRuby. The HA ruby layer is very thin. I guess it's just a configuration issue or a missmatch in JAR file versions. |
I think this issue ant't actual anymore since there is Neo4j 1.9 released. Unfortunatelly I failed to test neo4j gem against updated neo4j-* gems since neo4j-core has strict dependency on neo4j < 1.9. Are there any plans to update related gems up that new neo4j release? |
Yes, but I not sure when I will get time, hopefully soon. On Fri, May 24, 2013 at 5:18 PM, Viacheslav Petrenko <
|
I have now tested it with a local build of 1.9 jars and all rspecs, backup tests and a simple HA cluster test works without any modifications. |
I really appreciate that.That sounds really great. What is "simple HA cluster"? |
Strange now I get the same exception as you when I follow my HA wiki page using locally built 1.9 jars.
After investigating the
I then stopped all java processes and started only the HA Neo4j rails console, but then it hangs instead.
I'm using this Neo4j HA configuration: https://github.com/andreasronge/neo4j/wiki/Neo4j%3A%3Aha-cluster |
The first "failed to start" looks like the message when you try to start multiple neo4j's with the same ID or port. I am seeing the 'hang'. I also tried a simple HA setup using embedded neo4j in java and ended up with the same hang. This discussion seems relevant and I added what I experienced: https://groups.google.com/forum/?fromgroups=#!topic/neo4j/OBXHmZZxEZ0 |
Resolved! Neo4j 1.9.M03 was the last version that would let a HA cluster start without a majority of the nodes in the cluster. (according to Peter from the google group discussion) Also, it might we worth adding a note that HA will not work if you have ruby-debug in your Gemfile because IRB will always be defined then. I tried finding another constant that would work but did not have any luck since the railtie is so earlier (before_configuration). |
Fantastic, well done ! |
Awesome! HA is working well for me with the 1.9 jars. |
I think a nice way to solve the hang and having to trigger Neo4j by console might be to start with initial_hosts being only the current process + port. Then when another 'host' starts (console or server), initial_hosts will be the previous host(s) and the new host for this process. It sounds like Neo4j supports this based on HA Setup. We might be able to use ha.discovery.url and write to the file as server or console processes are started. Or keep track of the processes based on file that behaves like a pid in tmp/. I'll probably play with this some more this week as I have time. Also, #240 is the ruby-debug ticket which is what I was experiencing. |
One other thought as a 'quick' fix. Neo4j is waiting for a majority to be available. If we change the railtie initial_hosts to be only [0,1] the cluster will probably start up assuming that 50% is considered a majority. I still like being able to update initial_hosts and more processes are started but might be worth doing the quick fix to unblock people trying neo4j 1.9. |
Great, I've now released the 1.9 jars. |
I look forward to test 1.9 :) |
Changing initial hosts to be [1,2] did not work. Both server and console had to have started Neo4j. |
I performed investigations on using recent neo4j gem with several version of neo4j java database (neo4j-community gem with packed java classes in). It looks like there changes happened since version 1.9.M03 and they result in Neo4j initialization failure with error
org.neo4j.kernel.lifecycle.LifecycleException
inJava::OrgNeo4jKernel::EmbeddedGraphDatabase.new(...)
call.1.9.RC1 and 1.9.RC2 have the same issue. So i guess that upcoming 1.9 release will fail to start with neo4j gem. To reproduce the issue it needs (for example):
in Gemfile
in command line:
Could please anyone point me to a possible solution to resolve this issue?
The text was updated successfully, but these errors were encountered: