RE: content hash of a tree

2013-10-15 Thread Marcel Reutegger
Hi, You can't. The underlying MicroKernel/NodeStore does not necessarily store content by hash. In fact neither the MongoMK nor the SegmentMK do so. hmm, that's bad. I thought this was one of the fundamental principles that allow for quick diff/merge and help identify a commit within

Re: content hash of a tree

2013-10-15 Thread Thomas Mueller
Hi, I thought this was one of the fundamental principles that allow for quick diff/merge and help identify a commit within the MVCC timeline. I'm not sure where you heard or read that, but a content hash is not needed for this; a revision number that is changed whenever there is a modification

Re: content hash of a tree

2013-10-15 Thread Ian Boston
On 15 October 2013 08:13, Thomas Mueller muel...@adobe.com wrote: Hi, I thought this was one of the fundamental principles that allow for quick diff/merge and help identify a commit within the MVCC timeline. I'm not sure where you heard or read that, but a content hash is not needed for this;

Re: content hash of a tree

2013-10-15 Thread Thomas Mueller
Hi, With the current state of Oak, is Oak on Cassandra possible ? I think yes. I don't know what would prevent us from using Cassandra / HBase. Regards, Thomas

Re: content hash of a tree

2013-10-15 Thread Jukka Zitting
Hi, On Tue, Oct 15, 2013 at 1:53 PM, Tobias Bocanegra tri...@apache.org wrote: * for example for NodeTypeImpl.equals() we could just compare the hash of the substree storing the node type definition. I'd just compare the names of the node types. Or alternatively do a deep compare of the nodes,

Re: content hash of a tree

2013-10-15 Thread Tobias Bocanegra
Hi, On Tue, Oct 15, 2013 at 11:28 AM, Jukka Zitting jukka.zitt...@gmail.comwrote: Hi, On Tue, Oct 15, 2013 at 1:53 PM, Tobias Bocanegra tri...@apache.org wrote: * for example for NodeTypeImpl.equals() we could just compare the hash of the substree storing the node type definition. I'd

Re: content hash of a tree

2013-10-15 Thread Jukka Zitting
Hi, On Tue, Oct 15, 2013 at 2:41 PM, Tobias Bocanegra tri...@apache.org wrote: Maybe the jcr:etags need to be handled in a commit hook that also can be configured to what to include in the etag-hash. for example, the jcr:lastModified or jcr:created does not need to be included in the hash.

Re: content hash of a tree

2013-10-15 Thread Tobias Bocanegra
On Tue, Oct 15, 2013 at 11:53 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Tue, Oct 15, 2013 at 2:41 PM, Tobias Bocanegra tri...@apache.org wrote: Maybe the jcr:etags need to be handled in a commit hook that also can be configured to what to include in the etag-hash. for example,

Re: content hash of a tree

2013-10-14 Thread Tobias Bocanegra
On Mon, Oct 14, 2013 at 7:08 PM, Jukka Zitting jukka.zitt...@gmail.comwrote: Hi, On Mon, Oct 14, 2013 at 8:39 PM, Tobias Bocanegra tri...@apache.org wrote: just wondering, how can I retrieve the content-hash of a subtree? You can't. The underlying MicroKernel/NodeStore does not