[ANNOUNCE] Apache Jackrabbit Oak 1.1.0 released

2014-10-06 Thread Amit Jain
The Apache Jackrabbit community is pleased to announce the release of
Apache Jackrabbit Oak 1.1.0 The release is available for download at:

http://jackrabbit.apache.org/downloads.html

See the full release notes below for details about this release.

Introduction


Jackrabbit Oak is a scalable, high-performance hierarchical content
repository designed for use as the foundation of modern world-class
web sites and other demanding content applications.

Apache Jackrabbit Oak 1.1.0 is an unstable release cut directly from
Jackrabbit Oak trunk, with a focus on new features and other improvements.
For production use we recommend the latest stable 1.0.6 release.

The Oak effort is a part of the Apache Jackrabbit project.
Apache Jackrabbit is a project of the Apache Software Foundation.

Changes in Oak 1.1.0
-

New Features

  [OAK-1323] - CLONE - XPath queries currently require @ in front of
property names
  [OAK-1522] - Provide PojoSR based RepositoryFactory implementation
  [OAK-1805] - Debugging console
  [OAK-1922] - Introduce Password Expiry With Max Password Age and On First
Login
  [OAK-1978] - Add path exclusion to JackrabbitEventFilter
  [OAK-1993] - Add command to dump Lucene index in Oak Console
  [OAK-2074] - _lastRev recovery tool

Improvements

  [OAK-1478] - allow selecting a nodestore fixture for tests
  [OAK-1561] - Implement optimised range queries
  [OAK-1570] - Improve perfomances of the OrderedIndex while insert
  [OAK-1609] - Configurable property exclusions for SolrIndexEditor and
SolrQueryIndex
  [OAK-1618] - Implement noInternal from JackrabbitEventFilter
  [OAK-1669] - JCR Event Info should contain NodeType for all Events
  [OAK-1673] - FulltextQueryTest coverage for Solr indexer
  [OAK-1681] - Clarify contract of NodeBuilder.isReplaced()
  [OAK-1683] - Remove dependency of DocumentStore to MicroKernelException
  [OAK-1685] - BlobStore: improve code readability
  [OAK-1691] - Use in-memory DB for DOCUMENT_JDBC fixture
  [OAK-1694] - Use known.issues instead of commented tests
  [OAK-1706] - Add RestrictionProvider#getPattern(String,Set)
  [OAK-1716] - Enable passing of a execution context to runTest in multi
threaded runs
  [OAK-1718] - Avoid expanding empty property restrictions if not needed
  [OAK-1721] - register ContentRepository to whiteboard
  [OAK-1725] - Improved SolrCursor support for paged results
  [OAK-1733] - Consolidate Mongo client connection creation logic
  [OAK-1754] - add docu how to connect to Mongo w/ credentials
  [OAK-1790] - Import of compressed wikipedia dump
  [OAK-1794] - Keep commit info for local changes in main document
  [OAK-1796] - Update Mongo Java Driver version to 2.12
  [OAK-1815] - Don't create default (Scheduled)Executor when respective
instance is supplied
  [OAK-1820] - Set _lastRev on insert when new node is also commit root
  [OAK-1830] - DocumentNodeStore code robustness when persistence
inconsistent
  [OAK-1847] - Use SegmentMK for testing where possible
  [OAK-1850] - Dump help details for various command supported by oak-run
  [OAK-1857] - Support collection object conversion to String[] in
ConfigurationParameters
  [OAK-1858] - Segment Explorer
  [OAK-1863] - Generic operation tasks should be able to return specific
results
  [OAK-1867] - Optimize SegmentWriter.prepare()
  [OAK-1876] - oak-run option to do diffs between TarMK revisions
  [OAK-1919] - Use 127.0.0.1 as default for MongoDB host
  [OAK-1928] - Cleanup test and execution fixtures
  [OAK-1929] - MicroKernelServer not usable with user specified MicroKernel
implementation
  [OAK-1942] - UserAuthentication: enhance login states with relevant
exceptions
  [OAK-1945] - Unclear NodeStore.merge() contract
  [OAK-1950] - Add GlobalNameMapper(NodeState) constructor
  [OAK-1955] - oak-run main method should print available run modes
  [OAK-1961] - Introduce DocumentStoreException
  [OAK-1965] - Support for constraints like: foo = 'X' OR bar = 'Y'
  [OAK-1994] - Limit no of children listed with ls command in Oak Console
  [OAK-2003] - Avoid  in javadoc
  [OAK-2013] - Add utility class for tracking time spent in the code
  [OAK-2030] - Remove ContentRepositoryImpl#getNodeStore
  [OAK-2031] - MemoryNodeBuilder#set only works on root builders
  [OAK-2041] - Checkpoint list command should also provide the checkpoint
lifetime
  [OAK-2057] - Add timing to OrderedIndex
  [OAK-2061] - Oak run debug option to list content from a tar file
  [OAK-2101] - Add test for observation events when renaming a node
  [OAK-2116] - Explorer should display the template Id and use it in the
reference tracking report
  [OAK-2120] - Simplify BranchStates
  [OAK-2133] - Lucene: improved batching and logging
  [OAK-2134] - Lucene: not using the path restriction can speed up queries

Bugs
  [OAK-203] - Basic same name sibling support
  [OAK-1267] - Failure in ObservationRefreshTest
  [OAK-1414] - Copying a large subtrees does not scale as expected in the
number of copied nodes on d

buildbot success in ASF Buildbot on oak-trunk-win7

2014-10-06 Thread buildbot
The Buildbot has detected a restored build on builder oak-trunk-win7 while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk-win7/builds/646

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-win7

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629714
Blamelist: chetanm,mduerig,reschke

Build succeeded!

sincerely,
 -The Buildbot





buildbot failure in ASF Buildbot on oak-trunk

2014-10-06 Thread buildbot
The Buildbot has detected a new failure on builder oak-trunk while building ASF 
Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk/builds/597

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629714
Blamelist: reschke

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





buildbot success in ASF Buildbot on oak-trunk

2014-10-06 Thread buildbot
The Buildbot has detected a restored build on builder oak-trunk while building 
ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk/builds/596

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629688
Blamelist: chetanm

Build succeeded!

sincerely,
 -The Buildbot





buildbot failure in ASF Buildbot on oak-trunk

2014-10-06 Thread buildbot
The Buildbot has detected a new failure on builder oak-trunk while building ASF 
Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk/builds/595

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629676
Blamelist: mduerig

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





OakMerge0001: Failed to merge changes to the underlying store

2014-10-06 Thread TALHAOUI Mohamed
HI,

Sorry if this is not the right place to post but I have an issue with a simple 
POC using Oak 1.1.0 and MongoDB as a node store.
I would appreciate any help / hints on resolving this issue.

Thanks

I am getting the following exception:
java.lang.RuntimeException: 
org.apache.jackrabbit.oak.api.CommitFailedException: OakMerge0001: 
OakMerge0001: Failed to merge changes to the underlying store (retries 5, 4848 
ms)
   at 
org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:64)
   at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:551)
   at org.apache.jackrabbit.oak.jcr.Jcr.createRepository(Jcr.java:196)
   at com.rsd.glass.oak.Poc.main(Poc.java:44)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakMerge0001: 
OakMerge0001: Failed to merge changes to the underlying store (retries 5, 4848 
ms)
   at 
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch.merge(AbstractNodeStoreBranch.java:341)
   at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:161)
   at 
org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:159)
   at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1290)
   at 
org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:62)

Here is my code:

public class Poc {

   public static void main(String args[]) {

 Session session = null;
 try {
MongoConnection connection = new 
MongoConnection("127.0.0.1", 27017, "oak");
DB db = connection.getDB();

DocumentMK.Builder builder = new DocumentMK.Builder();
builder.setMongoDB(db);

NodeStore nodeStore = new DocumentNodeStore(builder);
Repository repository = new 
Jcr(nodeStore).createRepository();
session = repository.login(new SimpleCredentials("admin", 
"admin".toCharArray()));

Poc poc = new Poc();

NodeTypeManager ntm = 
session.getWorkspace().getNodeTypeManager();
CndImporter.registerNodeTypes(new 
FileReader("src/main/resources/myMetadata.cnd"), session, true);

poc.buildContent(session, poc, ntm);

session.save();

// Retrieve content
Node rootNode = session.getRootNode();
Node node = rootNode.getNode("Policies/HR/Contracts");
System.out.println(node.getPath());

System.exit(0);
 } catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.exit(-1);
 } finally {
if (session != null) {
   session.logout();
}
 }

   }

   private void buildContent(Session session, Poc poc, NodeTypeManager ntm) 
throws Exception {

 if (session.itemExists("/Policies")) {
session.removeItem("/Policies");
 }

 // Create Policies tree
 Node rootNode = session.getRootNode();
 Node policiesNode = rootNode.addNode("Policies", "my:policy");
 Node hrNode = policiesNode.addNode("HR", "my:policy");
 hrNode.setProperty("my:metadata", "hr");
 Node contractsNode = hrNode.addNode("Contracts", "my:policy");
 contractsNode.setProperty("my:metadata", "contract");

   }

}



buildbot success in ASF Buildbot on oak-trunk

2014-10-06 Thread buildbot
The Buildbot has detected a restored build on builder oak-trunk while building 
ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk/builds/594

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629670
Blamelist: mduerig,reschke,thomasm

Build succeeded!

sincerely,
 -The Buildbot





buildbot failure in ASF Buildbot on oak-trunk

2014-10-06 Thread buildbot
The Buildbot has detected a new failure on builder oak-trunk while building ASF 
Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk/builds/593

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629637
Blamelist: mduerig,thomasm

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





Re: Command line tools documentation

2014-10-06 Thread Chetan Mehrotra
Hi Thomas,

Command line tool options are documented at the readme in oak-run
folder. See [1]. Or you are looking for something else?

Chetan Mehrotra
[1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-run#oak-runnable-jar



On Mon, Oct 6, 2014 at 7:13 PM, Thomas Mueller  wrote:
> Hi,
>
> I didn't find any official documentation about the command line tools. I have 
> started documenting oak-run:
>
> http://jackrabbit.apache.org/oak/docs/command_line.html
>
> Regards,
> Thomas
>


Re: Command line tools documentation

2014-10-06 Thread Michael Dürig



On 6.10.14 3:43 , Thomas Mueller wrote:

Hi,

I didn't find any official documentation about the command line tools. I have 
started documenting oak-run:

http://jackrabbit.apache.org/oak/docs/command_line.html



This is currently in the readme [1]. However, it probably makes sense to 
move it over to the docs modules and strip down the readme basically 
pointing to the docs.


Michael

[1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run/README.md.


Re: svn commit: r1629643 - /jackrabbit/oak/trunk/oak-run/README.md

2014-10-06 Thread Michael Dürig



On 6.10.14 3:26 , Chetan Mehrotra wrote:

upgrade mode is only supported in oak-run-jr2 jar (as that only
packages JR2 classes) and is documented there [1]


Thanks, fixed.
Michael


Command line tools documentation

2014-10-06 Thread Thomas Mueller
Hi,

I didn't find any official documentation about the command line tools. I have 
started documenting oak-run:

http://jackrabbit.apache.org/oak/docs/command_line.html

Regards,
Thomas



buildbot failure in ASF Buildbot on oak-trunk-win7

2014-10-06 Thread buildbot
The Buildbot has detected a new failure on builder oak-trunk-win7 while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk-win7/builds/644

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-win7

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629643
Blamelist: mduerig,thomasm

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





Re: svn commit: r1629643 - /jackrabbit/oak/trunk/oak-run/README.md

2014-10-06 Thread Chetan Mehrotra
HI Michael,

On Mon, Oct 6, 2014 at 6:44 PM,   wrote:
> +* upgrade : Upgrade from Jackrabbit 2

upgrade mode is only supported in oak-run-jr2 jar (as that only
packages JR2 classes) and is documented there [1]

Chetan Mehrotra
[1] 
https://github.com/apache/jackrabbit-oak/tree/trunk/oak-run#oak-runnable-jar---jr-2


buildbot success in ASF Buildbot on oak-trunk-win7

2014-10-06 Thread buildbot
The Buildbot has detected a restored build on builder oak-trunk-win7 while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk-win7/builds/643

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-win7

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629629
Blamelist: thomasm

Build succeeded!

sincerely,
 -The Buildbot





buildbot failure in ASF Buildbot on oak-trunk-win7

2014-10-06 Thread buildbot
The Buildbot has detected a new failure on builder oak-trunk-win7 while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/oak-trunk-win7/builds/642

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-win7

Build Reason: scheduler
Build Source Stamp: [branch jackrabbit/oak/trunk] 1629623
Blamelist: mduerig

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





JUG talk about Apache Jackrabbit Oak

2014-10-06 Thread Marcel Reutegger
Hi,

there will be Java User Group talk about Jackrabbit Oak
in Basel on October 23rd. Details about the event are
available here:

http://www.jug.ch/html/events/2014/apache_jackrabbit_oak.html


Participation is free if you attend a JUG event for the first
time. Afterwards you'll probably want to become a member.

BBQ and drinks after the talk are sponsored by Adobe.

I look forward to seeing users and developers of Jackrabbit and
Oak at this event!

Regards
 Marcel