Re: [Neo4j] InvalidRecordException
Hi Jim. Actually there is more than one. The code is already in production, so we are not eager to move too early on new versions. Moreover, we have very small databases and performance is not an issue, so the _only_ driver for upgrade would be the fixing of specific (this :-) ) bugs. We've not yet managed to reproduce the bug reliably in our lab environment, so testing against the latest release is not yet possible effectively; we'll try as soon as we can, but would greatly appreciate any insight that was gained after the analysis of the data provided by the thread openers. Thanks for your interest. Francesco Il 5 aprile 2011 alle 21.54 Jim Webber ha scritto: > Hi Francesco, > > Is there a compelling reason why you need to be on Neo 1.1? We're in the > process of releasing 1.3 which has substantial advantages over 1.1 (larger > databases, performance improvements, bug fixes). > > Could you run a quick experiment on one of the 1.3 milestone builds and > perhaps plan to migrate to 1.3 from there? > > Jim > ___ > 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] InvalidRecordException
Hi Francesco, Is there a compelling reason why you need to be on Neo 1.1? We're in the process of releasing 1.3 which has substantial advantages over 1.1 (larger databases, performance improvements, bug fixes). Could you run a quick experiment on one of the 1.3 milestone builds and perhaps plan to migrate to 1.3 from there? Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Spring Data Graph - Neo4j Support 1.0.0.RC1 Released
Hi, we're approaching the first public final release of Spring Data Graph in big steps. Thanks to the feedback we were able to improve it further. Special Thanks to Alfredas who used SDG in his impressive Energy Market Simulation and gave us valueable insights. The major things in this release are the new composable repositories from spring data commons (previously Hades) and the integration of Neo4j Server. You can run (unmanaged) extensions in the server with SDG and also consume the REST API via SDG. And last but not least full featured Relationship-Entity support for type representation and repositories. The preliminary documentation of Spring Data Graph can be found here: http://bit.ly/das-book (thanks to Jim for the name suggestion). Now get it as long as it's fresh an give us feedback so we can release a really awesome 1.0.0 in the next few days. Thanks to the team at VMWare and our guys for the great work. Cheers Michael Below the official announcement from SpringSource. Hi everyone, We are pleased to announce that the first release candidate (1.0.0.RC1) of the Spring Data Graph 1.0 project with Neo4j support is available. The new RC1 release provides: * replaced finders with composable spring-data-commons repositories * added rest-client support for consuming Neo4j-REST server with Spring Data Graph * re-added OSGi bundlor metainformation * relationship entity creation aligned to node entity creation * added TypeRepresentation Strategies for Relationships, enabling RelationshipEntity-Repositories * lots of performance improvements * fixed removal of relationship entities * added a GraphDatabase abstraction to be used with Neo4jTemplate * Neo4jTemplate API udpates * added aspect-introduced methods to NodeBacked and RelationshipBacked interfaces (with javadocs) * removed fullIndex annotation attribute * moved @Indexed annotation to org.springframework.data.graph.neo4j.annotation package * many documentation updates See the official announcement at http://www.springsource.org/node/3081 Feedback welcome! -- Thomas ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] InvalidRecordException
Hello everyone. Was this issue investigated and, perhaps, solved ? We started experiencing the same today, on Neo 1.1 on CentOS 5 and couldn't manage to reproduce it reliably yet. I will attach a stacktrace and more info tomorrow, but wanted to know if there were any news on the issue. Thanks in advance Francesco Degrassi Il 10 marzo 2011 alle 21.58 Massimo Lusetti ha scritto: > On Thu, Mar 10, 2011 at 6:11 PM, Axel Morgner wrote: > > > Hi, > > > > I'm getting an InvalidRecordException > > > > org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node[5] is > > neither firstNode[37781] nor secondNode[37782] for Relationship[188125] > > at > > org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.getMoreRelationships(ReadTransaction.java:131) > > at > > org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource$ReadOnlyResourceConnection.getMoreRelationships(NioNeoDbPersistenceSource.java:280) > > at > > org.neo4j.kernel.impl.persistence.PersistenceManager.getMoreRelationships(PersistenceManager.java:100) > > at > > org.neo4j.kernel.impl.core.NodeManager.getMoreRelationships(NodeManager.java:585) > > at > > org.neo4j.kernel.impl.core.NodeImpl.getMoreRelationships(NodeImpl.java:358) > > at > > org.neo4j.kernel.impl.core.IntArrayIterator.hasNext(IntArrayIterator.java:115) > > > > when iterating through the relationships of a certain node: > > > > Node node = graphDb.getNodeById(sNode.getId()); > > > > Iterable rels = > > node.getRelationships(relType, dir); > > > > for (Relationship r : rels) { <- here the expeption > > occurs > > ... > > } > > > > I'm using 1.3.M03. > > > > Seems that the database is in an inconsitant state. Don't know how this > > could happen ... > > > > > > Greetings > > > > Axel > > > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > > > I'm encountering this same/similar exception quite ofter lately, with > the same 1.3.M03 version, on FreeBSD 8.2 with OpenJDK Runtime > Environment (build 1.6.0-b21) OpenJDK 64-Bit Server VM (build > 19.0-b09, mixed mode): > > org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: > Record[4130751] not in use > at >org.neo4j.kernel.impl.nioneo.store.RelationshipStore.getRecord(RelationshipStore.java:194) > at >org.neo4j.kernel.impl.nioneo.store.RelationshipStore.getRecord(RelationshipStore.java:96) > at >org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.connectRelationship(WriteTransaction.java:1435) > at >org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.relationshipCreate(WriteTransaction.java:1389) > at >org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaConnection$RelationshipEventConsumerImpl.createRelationship(NeoStoreXaConnection.java:256) > at >org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource$NioNeoDbResourceConnection.relationshipCreate(NioNeoDbPersistenceSource.java:370) > at >org.neo4j.kernel.impl.persistence.PersistenceManager.relationshipCreate(PersistenceManager.java:153) > at >org.neo4j.kernel.impl.core.NodeManager.createRelationship(NodeManager.java:309) > at >org.neo4j.kernel.impl.core.NodeImpl.createRelationshipTo(NodeImpl.java:387) > at >org.neo4j.kernel.impl.core.NodeProxy.createRelationshipTo(NodeProxy.java:186) > > Did it rings and alert bell!? > > Cheers > -- > Massimo > http://meridio.blogspot.com > ___ > 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] EmbeddedReadOnlyGraphDatabase workings
Alfredas, A solution based on EmbeddedReadOnlyGraphDatabase would not be able to benefit from caching, as each "refresh" of the view would have to clear the caches. You could possibly achieve the solution you want by setting the config parameter cache_type=none for the read-only instance. Then it should not cache anything and always read from disk or OS cache. This would however yield degraded performance if you repeatedly read the same data. If your processing could benefit from caching, then you're better off creating a new instance, or manually clearing the caches. Or going with the HA-based solution that Jim and Mattias outlined. David On Tue, Apr 5, 2011 at 9:36 AM, Alfredas Chmieliauskas wrote: > Yes. The read only client would query the db at time intervals. > > Alfredas > > On Tue, Apr 5, 2011 at 5:40 PM, David Montag > wrote: > > Alfredas, > > When you say watch, do you mean "poll" the graph at some interval? What > > would the read-only client do? > > Thanks, > > David > > > > On Tue, Apr 5, 2011 at 5:26 AM, Alfredas Chmieliauskas < > al.fre...@gmail.com> > > wrote: > >> > >> Dear all, > >> > >> we have the following situation: > >> - 1 client is writing to the embedded db (writer) > >> - 1 client would like to watch that (read-only) > >> > >> is that possible with the EmbeddedReadOnlyGraphDatabase? > >> Currently it seems that the read-only db does not see the updates from > >> the writer since its creation. It there a way to force refresh besides > >> creating a new instance? > >> > >> Also are there any other/better ways to do that (1 writer, 1 reader) > >> without going into the server mode? > >> > >> Thanks a lot, > >> > >> Alfredas > >> ___ > >> Neo4j mailing list > >> User@lists.neo4j.org > >> https://lists.neo4j.org/mailman/listinfo/user > > > > > > > > -- > > David Montag > > Neo Technology, www.neotechnology.com > > Cell: 650.556.4411 > > Skype: ddmontag > > > -- David Montag Neo Technology, www.neotechnology.com Cell: 650.556.4411 Skype: ddmontag ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] simple traverse of tree
Well so lastRelationship() isnt the right one method I am looking for and I have to look for highest id manually. But I have problem that if I traverse in the way like Michael suggested: Iterator i = Traversal.description().relationships(RelationshipTypes.TICKET_QUEUE, Direction.BOTH).relationships(RelationshipTypes.TICKET_STATUS, Direction.BOTH). relationships(RelationshipTypes.TICKET_TIMETAKEN, Direction.BOTH). traverse(ticketNode).nodes().iterator(); The iterator gives me only 6 ancestors. But in Neoclipse I can see much more ancestor nodes which is right. Why this traverse gives me bad result? I need all nodes which are directly connected thought Relatioshiptypes TICKET_STATUS,TICKET_TIMETAKEN,TICKET_QUEUE with ticketNode... Dne 4.4.2011 13:59, Mattias Persson napsal(a): > 2011/4/4 Matěj Plch > >> Is it possible to use >> >> *Path.lastRelationship*() >> >> ? >> How does it take last Relationship? According to id, or how the graph is >> traversed? >> > It returns the last relationships in the current path, i.e. where the > traverser is a.t.m. So it already has a reference to it and just returns it. > >> Dne 26.3.2011 19:35, Michael Hunger napsal(a): >>> Sure, if the tree from your root node is just a cluster that is not >> connected anywhere else (with those 3 relationship-types) it should be as >> simple as. >>> (Just written from my head, so please check the correct syntax). >>> >>> >> Traversal.description().relationship(T1,OUTGOING).relationship(T2,OUTGOING).relationship(T3,OUTGOING).traverse(rootNode); >>> That returns an iterator of all paths going from your root node. >>> >>> You can limit the nodes with .uniqueness() and then add the path's >> (path.nodes()) to a set to collect all nodes. >>> For getting the one with the highest id, you can use >> java.util.Collections.max(collection, new Comparator(){}); >>> How big is your tree? >>> >>> Something like that should be in Graph-Algo perhaps as "subgraph" or >> "tree". >>> HTH >>> >>> Michael >>> >>> Am 26.03.2011 um 19:26 schrieb Matěj Plch: >>> Thank you for so fast answer. I will look at it. I have milestone tomorrow so dont have a lot of time=) and have never worked with Groovy. Well so there isnt any simple method how to do it in classic neo4j Java >> API? Dne 26.3.2011 19:16, Saikat Kanjilal napsal(a): > You can do all of these things using gremlin and pipes. Check out >> github for more details. > Sent from my iPhone > > On Mar 26, 2011, at 11:13 AM, Matěj Plch >> wrote: >> Hi, I have some graph and, part of it is a tree. I simple get root of >> this tree through id. How to simple tranverse only tree under this >> root >> node? From root goes three unique type relationship to three unique >> group type nodes. Under this three nodes are a lot of nodes. And I >> need >> to write a method which gives me all nodes under that group node. >> Second question is if its possible ho to get from this group noe with >> the highest id (last added). >> Matěj Plch >> >> ___ >> 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 >> ___ >> 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] EmbeddedReadOnlyGraphDatabase workings
Yes. The read only client would query the db at time intervals. Alfredas On Tue, Apr 5, 2011 at 5:40 PM, David Montag wrote: > Alfredas, > When you say watch, do you mean "poll" the graph at some interval? What > would the read-only client do? > Thanks, > David > > On Tue, Apr 5, 2011 at 5:26 AM, Alfredas Chmieliauskas > wrote: >> >> Dear all, >> >> we have the following situation: >> - 1 client is writing to the embedded db (writer) >> - 1 client would like to watch that (read-only) >> >> is that possible with the EmbeddedReadOnlyGraphDatabase? >> Currently it seems that the read-only db does not see the updates from >> the writer since its creation. It there a way to force refresh besides >> creating a new instance? >> >> Also are there any other/better ways to do that (1 writer, 1 reader) >> without going into the server mode? >> >> Thanks a lot, >> >> Alfredas >> ___ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user > > > > -- > David Montag > Neo Technology, www.neotechnology.com > Cell: 650.556.4411 > Skype: ddmontag > ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] EmbeddedReadOnlyGraphDatabase workings
Alfredas, When you say watch, do you mean "poll" the graph at some interval? What would the read-only client do? Thanks, David On Tue, Apr 5, 2011 at 5:26 AM, Alfredas Chmieliauskas wrote: > Dear all, > > we have the following situation: > - 1 client is writing to the embedded db (writer) > - 1 client would like to watch that (read-only) > > is that possible with the EmbeddedReadOnlyGraphDatabase? > Currently it seems that the read-only db does not see the updates from > the writer since its creation. It there a way to force refresh besides > creating a new instance? > > Also are there any other/better ways to do that (1 writer, 1 reader) > without going into the server mode? > > Thanks a lot, > > Alfredas > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- David Montag Neo Technology, www.neotechnology.com Cell: 650.556.4411 Skype: ddmontag ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Anyone going to NextConf?
Sure, we can make something in town about it!! tell me!! /purbon 2011/4/5 Peter Neubauer > Awh snap. > > I think next up on the Beerlin track is a release party for Neo4j 1.3 > which we are fighting to get out :) > > 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 Wed, Mar 30, 2011 at 3:20 PM, Pere Urbon Bayes > wrote: > > I correct myself, too much money!! > > > > Pere > > > > If anyone come to town, we can share some beers! > > > > 2011/3/30 Pere Urbon Bayes > > > >> Hi! > >> thanks you for noticing!! As a new Berliner I will probably try to go. > >> > >> Pere > >> > >> > >> 2011/3/30 Peter Neubauer > >> > >>> Hi there, > >>> seems http://nextconf.eu/next11/ is something to go for this summer > >>> and talk graphs - anyone attending from this community? > >>> > >>> 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. > >>> ___ > >>> 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 > -- Pere Urbón-Bayes http://www.purbon.com http://twitter.com/purbon Barcelona - Catalonia Spain ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Anyone going to NextConf?
Awh snap. I think next up on the Beerlin track is a release party for Neo4j 1.3 which we are fighting to get out :) 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 Wed, Mar 30, 2011 at 3:20 PM, Pere Urbon Bayes wrote: > I correct myself, too much money!! > > Pere > > If anyone come to town, we can share some beers! > > 2011/3/30 Pere Urbon Bayes > >> Hi! >> thanks you for noticing!! As a new Berliner I will probably try to go. >> >> Pere >> >> >> 2011/3/30 Peter Neubauer >> >>> Hi there, >>> seems http://nextconf.eu/next11/ is something to go for this summer >>> and talk graphs - anyone attending from this community? >>> >>> 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. >>> ___ >>> 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] EmbeddedReadOnlyGraphDatabase workings
2011/4/5 Jim Webber > Hi Alfredas, > > One sensible thing you could do in this situation is run in HA mode. That > way you route requests to one node, and route reads to the other. > > If you route writes to the master, the read slave is eventually consistent. > If you route writes to the slave, it is immediately consistent. > > (obviously this advice does not apply if you have more than two instances!) > Although a: * pull updates (which pulls updates from master if updates are available) * read will make sure you're reading the latest data no matter how many instances there are in the cluster. > > Jim > ___ > 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
Re: [Neo4j] EmbeddedReadOnlyGraphDatabase workings
Hi Alfredas, One sensible thing you could do in this situation is run in HA mode. That way you route requests to one node, and route reads to the other. If you route writes to the master, the read slave is eventually consistent. If you route writes to the slave, it is immediately consistent. (obviously this advice does not apply if you have more than two instances!) Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] EmbeddedReadOnlyGraphDatabase workings
Dear all, we have the following situation: - 1 client is writing to the embedded db (writer) - 1 client would like to watch that (read-only) is that possible with the EmbeddedReadOnlyGraphDatabase? Currently it seems that the read-only db does not see the updates from the writer since its creation. It there a way to force refresh besides creating a new instance? Also are there any other/better ways to do that (1 writer, 1 reader) without going into the server mode? Thanks a lot, Alfredas ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user