[RESULT][VOTE] Release Apache Jackrabbit Oak 1.7.10

2017-10-27 Thread Davide Giannella
Hello Team,

the vote passes as follows:

+1 Julian Reschke
+1 Amit Jain
+1 Davide Giannella
+1 Andrei Dulceanu
+1 Marcel Reutegger
+1 Vikas Saurabh
+1 Tommaso Teofili

Thanks for voting. I'll push the release out.

-- Davide



[ANNOUNCE] Apache Jackrabbit Oak 1.7.10 released

2017-10-27 Thread Davide Giannella
The Apache Jackrabbit community is pleased to announce the release of
Apache Jackrabbit Oak. The release is available for download at:

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

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

Release Notes -- Apache Jackrabbit Oak -- Version 1.7.10

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.7.10 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.6.x
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.7.10
-

Sub-task

[OAK-6841] - Revert Changes made in OAK-6575 before 1.7.10 is
released.

Technical task

[OAK-6113] - update spring to 1.5.x release
[OAK-6580] - Ensure mounts are consistent with the node type
registry
[OAK-6763] - Convert oak-examples to OSGi R6 annotations
[OAK-6787] - Delete property index entries recursively in batches
to avoid large transaction
[OAK-6811] - BasicDocumentStore: avoid use of API edge case in
test of cache invalidation
[OAK-6832] - Synchronous nodetype lucene index support

Bug

[OAK-6687] - ReadOnly connection to fresh SegmentNodeStore setup
failing
[OAK-6745] - Oak Web Application Example: Execution default-war of
goal org.apache.maven.plugins:maven-war-plugin:2.6:war failed
[OAK-6780] - Duplicated _exportcontents directive in oak-lucene's
pom.xml
[OAK-6789] - RDB: RevisionGC performance on Oracle
[OAK-6790] - FacetResult class isn't exposed anymore
[OAK-6808] - update surefire plugin to 2.20.1 for use with Java 9
[OAK-6816] - DataStoreTrackerGCTest failures
[OAK-6825] - oak-examples/standalone test failure on Java 9
[OAK-6827] - Consistency check fails with active deletions
[OAK-6840] - Tar recovery chokes on bulk segments
[OAK-6843] - Log correct path while initializing the DataStore
[OAK-6845] - org.apache.jackrabbit.oak.jcr.query.QueryJcrTest1IT
on java 9 fails with OutOfMemory
[OAK-6852] - RDBDocumentStore conditional remove: check condition
properly

Epic

[OAK-6727] - Oak should compile & test on Java 9

Improvement

[OAK-5546] - [BlobGC] Adapt time to delete blobs based on lucene
indexing activity
[OAK-5983] - BlobGC should log the amount of space reclaimed after
GC run is done
[OAK-6218] - Including id in DocumentStoreException which wrap
MongoException
[OAK-6550] - Make BlobTracker snapshot process smarter
[OAK-6615] - Add new segment-tar fixture for attaching a
cold-standby to benchmarked primary
[OAK-6650] - new release checksum requirements
[OAK-6792] - rep:facet not supported in xpath
[OAK-6801] - Set minRecordLength to the recommended 4096 in
OakFileDataStore
[OAK-6802] - Manage 'secret' property internally in
S3/AzureDataStore
[OAK-6803] - Provide a way to for persistent cache to determine
which all nodes can be cached
[OAK-6809] - Allow RevisionGCTest to operate on "long" paths
[OAK-6815] - Support specifying queryPaths in
IndexDefinitionBuilder
[OAK-6822] - RevisionGC: measure timeToDeleteSplitDocs separately
(when possible)
[OAK-6830] - RDBDocumentStore: allow schema evolution part 3
[OAK-6831] - Nodetype index support in Lucene Index
[OAK-6834] - Make TypeEditor publically accessible and allow
pluggable constraint violation handling
[OAK-6839] - RDBDocumentStore: queries done by GC processes should
not thrash the cache
[OAK-6842] - Refactor FileStore.close
[OAK-6849] - Avoid creating empty properties node under indexRules
[OAK-6851] - Disabled index with reindex flag enabled should not
lead to reindex report

New Feature

[OAK-6820] - Implement support for disabling indexes which are
replaced with newer index
[OAK-6853] - Oak run tooling to store reindexed property index in
segment store

Task

[OAK-4891] - Mount-time sanity checks for mounted NodeStore
instances
[OAK-6318] - Refactor oak.spi.security into a separate
module/bundle
[OAK-6810] - oak-pojosr tests fail with java 9
[OAK-6817] - Don't create metatype for MountInfoProviderService
[OAK-6819] - Move Configuration out of DocumentNodeStoreService
[OAK-6821] - Enforce minimum line coverage for oak-security-spi
[OAK-6846] - update maven-failsafe-plugin to 2.20.1

Test

[OAK-6848] - Improve
ObservationQueueFullWarnTest.testQueueFullThenFlushing to not
sleep arbitrarily when not required

In addition to the above-mentioned changes, this release contains
all changes included up to the Apache Jackrabbit Oak 1.

Intent to backport: OAK-6878

2017-10-27 Thread Tomek Rękawek
Hello,

I plan to backport the OAK-6878 to 1.6 branch today, so it’ll be included in 
the Monday release. It allows to set the S3DataStore configuration fields using 
a properties file. It’s requested by the customer - without this patch it’s 
impossible to set the cacheSize for the S3 migration.

Regards,
Tomek

--
Tomek Rękawek | Adobe Research | www.adobe.com
reka...@adobe.com



signature.asc
Description: Message signed with OpenPGP


Build fails at oak-lucene

2017-10-27 Thread Christian Schneider
Hi all,

I am currently trying to build oak from master. When doing mvn clean
install I get an error in the oak-lucene module.
It looks like the referenced adobe granite parent pom is missing. I guess
this error does not occur when someone builds using the Adobe vpn.

So I think we need to publish the parent pom to maven central. I will try
to find someone with the rights to do this.

Christian

-

[*ERROR*] Failed to execute goal on project oak-lucene: *Could not resolve
dependencies for project
org.apache.jackrabbit:oak-lucene:bundle:1.8-SNAPSHOT: Failed to collect
dependencies at org.apache.tika:tika-parsers:jar:1.15 ->
com.drewnoakes:metadata-extractor:jar:2.9.1 ->
com.adobe.xmp:xmpcore:jar:5.1.2*: Failed to read artifact descriptor for
com.adobe.xmp:xmpcore:jar:5.1.2: Failure to find
com.adobe.granite:parent:pom:60 in https://repo.maven.apache.org/maven2 was
cached in the local repository, resolution will not be reattempted until
the update interval of central has elapsed or updates are forced -> *[Help
1]*

-- 
-- 
Christian Schneider
http://www.liquid-reality.de


Computer Scientist
http://www.adobe.com


Re: Intent to backport: OAK-6878

2017-10-27 Thread Davide Giannella
On 27/10/2017 13:39, Tomek Rękawek wrote:
> Hello,
>
> I plan to backport the OAK-6878 to 1.6 branch today, so it’ll be included in 
> the Monday release. It allows to set the S3DataStore configuration fields 
> using a properties file. It’s requested by the customer - without this patch 
> it’s impossible to set the cacheSize for the S3 migration.
>

+1

D.




Re: Build fails at oak-lucene

2017-10-27 Thread Davide Giannella
On 27/10/2017 14:28, Christian Schneider wrote:
> Hi all,
>
> I am currently trying to build oak from master. When doing mvn clean
> install I get an error in the oak-lucene module.
> It looks like the referenced adobe granite parent pom is missing. I guess
> this error does not occur when someone builds using the Adobe vpn.
>
> So I think we need to publish the parent pom to maven central. I will try
> to find someone with the rights to do this.
>
> Christian
>
> -
>
> [*ERROR*] Failed to execute goal on project oak-lucene: *Could not resolve
> dependencies for project
> org.apache.jackrabbit:oak-lucene:bundle:1.8-SNAPSHOT: Failed to collect
> dependencies at org.apache.tika:tika-parsers:jar:1.15 ->
> com.drewnoakes:metadata-extractor:jar:2.9.1 ->
> com.adobe.xmp:xmpcore:jar:5.1.2*: Failed to read artifact descriptor for
> com.adobe.xmp:xmpcore:jar:5.1.2: Failure to find
> com.adobe.granite:parent:pom:60 in https://repo.maven.apache.org/maven2 was
> cached in the local repository, resolution will not be reattempted until
> the update interval of central has elapsed or updates are forced -> *[Help
> 1]*
>
I think I already saw this once. It's not oak-lucene but rather the
com.adobe.xmp:xmpcore.

Try deleting your `.m2/repository` for the `com/adobe` tree an retry.

HTH
D.




BUILD FAILURE: Jackrabbit Oak - Build # 919 - Failure

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #919)

Status: Failure

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/919/ to 
view the results.

Changes:
[frm] OAK-6829 - Make the configuration of NetworkErrorProxy immutable

[frm] OAK-6829 - Let the primary and the standby close the connection if an 
exception is caught

[chetanm] OAK-6873 - UserInitializer should not use hard coded 
QueryIndexProvider

 

Test results:
1 tests failed.
FAILED:  
org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment

Error Message:
QueryIndexProvider yet not initialized

Stack Trace:
java.lang.NullPointerException: QueryIndexProvider yet not initialized
at 
org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment(InitializerTest.java:51)

Re: Build fails at oak-lucene

2017-10-27 Thread Julian Reschke

On 2017-10-27 14:46, Davide Giannella wrote:

On 27/10/2017 14:28, Christian Schneider wrote:

Hi all,

I am currently trying to build oak from master. When doing mvn clean
install I get an error in the oak-lucene module.
It looks like the referenced adobe granite parent pom is missing. I guess
this error does not occur when someone builds using the Adobe vpn.

So I think we need to publish the parent pom to maven central. I will try
to find someone with the rights to do this.

Christian

-

[*ERROR*] Failed to execute goal on project oak-lucene: *Could not resolve
dependencies for project
org.apache.jackrabbit:oak-lucene:bundle:1.8-SNAPSHOT: Failed to collect
dependencies at org.apache.tika:tika-parsers:jar:1.15 ->
com.drewnoakes:metadata-extractor:jar:2.9.1 ->
com.adobe.xmp:xmpcore:jar:5.1.2*: Failed to read artifact descriptor for
com.adobe.xmp:xmpcore:jar:5.1.2: Failure to find
com.adobe.granite:parent:pom:60 in https://repo.maven.apache.org/maven2 was
cached in the local repository, resolution will not be reattempted until
the update interval of central has elapsed or updates are forced -> *[Help
1]*


I think I already saw this once. It's not oak-lucene but rather the
com.adobe.xmp:xmpcore.

Try deleting your `.m2/repository` for the `com/adobe` tree an retry.

HTH
D.



Yes. There are indeed two different versions of this artifact. I have no 
idea why.


Best regards, Julian



Re: BUILD FAILURE: Jackrabbit Oak - Build # 919 - Failure

2017-10-27 Thread Chetan Mehrotra
Fixed the test now with 1813536
Chetan Mehrotra


On Fri, Oct 27, 2017 at 6:37 PM, Apache Jenkins Server
 wrote:
> The Apache Jenkins build system has built Jackrabbit Oak (build #919)
>
> Status: Failure
>
> Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/919/ 
> to view the results.
>
> Changes:
> [frm] OAK-6829 - Make the configuration of NetworkErrorProxy immutable
>
> [frm] OAK-6829 - Let the primary and the standby close the connection if an 
> exception is caught
>
> [chetanm] OAK-6873 - UserInitializer should not use hard coded 
> QueryIndexProvider
>
>
>
> Test results:
> 1 tests failed.
> FAILED:  
> org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment
>
> Error Message:
> QueryIndexProvider yet not initialized
>
> Stack Trace:
> java.lang.NullPointerException: QueryIndexProvider yet not initialized
> at 
> org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment(InitializerTest.java:51)


BUILD FAILURE: Jackrabbit Oak - Build # 920 - Still Failing

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #920)

Status: Still Failing

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/920/ to 
view the results.

Changes:
[thomasm] OAK-6807 Query Recorder

 

Test results:
1 tests failed.
FAILED:  
org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment

Error Message:
QueryIndexProvider yet not initialized

Stack Trace:
java.lang.NullPointerException: QueryIndexProvider yet not initialized
at 
org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment(InitializerTest.java:51)

Re: BUILD FAILURE: Jackrabbit Oak - Build # 919 - Failure

2017-10-27 Thread Christian Schneider
Hi Chetan,

there are more similar failures. The build then breaks for me
at oak-upgrade.

.e.g:

[*INFO*] Running org.apache.jackrabbit.oak.upgrade.cli.*Jcr2ToSegmentTest*

[*ERROR*] *Tests **run: 2*, Failures: 0, *Errors: 2*, Skipped: 0, Time
elapsed: 1.657 s* <<< FAILURE!* - in org.apache.jackrabbit.oak.upgrade.cli.
*Jcr2ToSegmentTest*

[*ERROR*]
validateMigration(org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest)
 Time
elapsed: 1.657 s  <<< ERROR!

java.lang.RuntimeException: javax.jcr.RepositoryException: Failed to copy
content

at
org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)

Caused by: javax.jcr.RepositoryException: Failed to copy content

at
org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)

Caused by: java.lang.NullPointerException: QueryIndexProvider yet not
initialized

at
org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)

Christian

2017-10-27 15:42 GMT+02:00 Chetan Mehrotra :

> Fixed the test now with 1813536
> Chetan Mehrotra
>
>
> On Fri, Oct 27, 2017 at 6:37 PM, Apache Jenkins Server
>  wrote:
> > The Apache Jenkins build system has built Jackrabbit Oak (build #919)
> >
> > Status: Failure
> >
> > Check console output at https://builds.apache.org/job/
> Jackrabbit%20Oak/919/ to view the results.
> >
> > Changes:
> > [frm] OAK-6829 - Make the configuration of NetworkErrorProxy immutable
> >
> > [frm] OAK-6829 - Let the primary and the standby close the connection if
> an exception is caught
> >
> > [chetanm] OAK-6873 - UserInitializer should not use hard coded
> QueryIndexProvider
> >
> >
> >
> > Test results:
> > 1 tests failed.
> > FAILED:  org.apache.jackrabbit.oak.segment.InitializerTest.
> testInitializerSegment
> >
> > Error Message:
> > QueryIndexProvider yet not initialized
> >
> > Stack Trace:
> > java.lang.NullPointerException: QueryIndexProvider yet not initialized
> > at org.apache.jackrabbit.oak.segment.InitializerTest.
> testInitializerSegment(InitializerTest.java:51)
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de


Computer Scientist
http://www.adobe.com


BUILD FAILURE: Jackrabbit Oak - Build # 921 - Still Failing

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #921)

Status: Still Failing

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/921/ to 
view the results.

Changes:
[chetanm] OAK-6873 - UserInitializer should not use hard coded 
QueryIndexProvider

Adapt testcase

[thomasm] OAK-6807 Query Recorder

 

Test results:
46 tests failed.
FAILED:  
org.apache.jackrabbit.oak.upgrade.AuthorizableFolderEditorTest.verifyCorrectedNodeTypes

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyNodeTypesUpgradeTest.customNodeTypesAreRegistered

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferenced

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryT

Re: BUILD FAILURE: Jackrabbit Oak - Build # 919 - Failure

2017-10-27 Thread Chetan Mehrotra
Oops ... Looks like this impacts whole build. Would look into that
Chetan Mehrotra


On Fri, Oct 27, 2017 at 7:54 PM, Christian Schneider
 wrote:
> Hi Chetan,
>
> there are more similar failures. The build then breaks for me
> at oak-upgrade.
>
> .e.g:
>
> [*INFO*] Running org.apache.jackrabbit.oak.upgrade.cli.*Jcr2ToSegmentTest*
>
> [*ERROR*] *Tests **run: 2*, Failures: 0, *Errors: 2*, Skipped: 0, Time
> elapsed: 1.657 s* <<< FAILURE!* - in org.apache.jackrabbit.oak.upgrade.cli.
> *Jcr2ToSegmentTest*
>
> [*ERROR*]
> validateMigration(org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest)
>  Time
> elapsed: 1.657 s  <<< ERROR!
>
> java.lang.RuntimeException: javax.jcr.RepositoryException: Failed to copy
> content
>
> at
> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>
> Caused by: javax.jcr.RepositoryException: Failed to copy content
>
> at
> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>
> Caused by: java.lang.NullPointerException: QueryIndexProvider yet not
> initialized
>
> at
> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>
> Christian
>
> 2017-10-27 15:42 GMT+02:00 Chetan Mehrotra :
>
>> Fixed the test now with 1813536
>> Chetan Mehrotra
>>
>>
>> On Fri, Oct 27, 2017 at 6:37 PM, Apache Jenkins Server
>>  wrote:
>> > The Apache Jenkins build system has built Jackrabbit Oak (build #919)
>> >
>> > Status: Failure
>> >
>> > Check console output at https://builds.apache.org/job/
>> Jackrabbit%20Oak/919/ to view the results.
>> >
>> > Changes:
>> > [frm] OAK-6829 - Make the configuration of NetworkErrorProxy immutable
>> >
>> > [frm] OAK-6829 - Let the primary and the standby close the connection if
>> an exception is caught
>> >
>> > [chetanm] OAK-6873 - UserInitializer should not use hard coded
>> QueryIndexProvider
>> >
>> >
>> >
>> > Test results:
>> > 1 tests failed.
>> > FAILED:  org.apache.jackrabbit.oak.segment.InitializerTest.
>> testInitializerSegment
>> >
>> > Error Message:
>> > QueryIndexProvider yet not initialized
>> >
>> > Stack Trace:
>> > java.lang.NullPointerException: QueryIndexProvider yet not initialized
>> > at org.apache.jackrabbit.oak.segment.InitializerTest.
>> testInitializerSegment(InitializerTest.java:51)
>>
>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
> 
>
> Computer Scientist
> http://www.adobe.com


BUILD FAILURE: Jackrabbit Oak - Build # 922 - Still Failing

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #922)

Status: Still Failing

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/922/ to 
view the results.

Changes:
[thomasm] OAK-3371 Wrong evaluation of NOT clause: test case

[reschke] OAK-6869: oak-http and oak-remote use potentially vulnerable versions 
of com.fasterxml.jackson

 

Test results:
46 tests failed.
FAILED:  
org.apache.jackrabbit.oak.upgrade.AuthorizableFolderEditorTest.verifyCorrectedNodeTypes

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyNodeTypesUpgradeTest.customNodeTypesAreRegistered

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferenced

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHisto

Re: BUILD FAILURE: Jackrabbit Oak - Build # 919 - Failure

2017-10-27 Thread Chetan Mehrotra
Now build should pass post 1813545
Chetan Mehrotra


On Fri, Oct 27, 2017 at 8:22 PM, Chetan Mehrotra
 wrote:
> Oops ... Looks like this impacts whole build. Would look into that
> Chetan Mehrotra
>
>
> On Fri, Oct 27, 2017 at 7:54 PM, Christian Schneider
>  wrote:
>> Hi Chetan,
>>
>> there are more similar failures. The build then breaks for me
>> at oak-upgrade.
>>
>> .e.g:
>>
>> [*INFO*] Running org.apache.jackrabbit.oak.upgrade.cli.*Jcr2ToSegmentTest*
>>
>> [*ERROR*] *Tests **run: 2*, Failures: 0, *Errors: 2*, Skipped: 0, Time
>> elapsed: 1.657 s* <<< FAILURE!* - in org.apache.jackrabbit.oak.upgrade.cli.
>> *Jcr2ToSegmentTest*
>>
>> [*ERROR*]
>> validateMigration(org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest)
>>  Time
>> elapsed: 1.657 s  <<< ERROR!
>>
>> java.lang.RuntimeException: javax.jcr.RepositoryException: Failed to copy
>> content
>>
>> at
>> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>>
>> Caused by: javax.jcr.RepositoryException: Failed to copy content
>>
>> at
>> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>>
>> Caused by: java.lang.NullPointerException: QueryIndexProvider yet not
>> initialized
>>
>> at
>> org.apache.jackrabbit.oak.upgrade.cli.Jcr2ToSegmentTest.prepare(Jcr2ToSegmentTest.java:56)
>>
>> Christian
>>
>> 2017-10-27 15:42 GMT+02:00 Chetan Mehrotra :
>>
>>> Fixed the test now with 1813536
>>> Chetan Mehrotra
>>>
>>>
>>> On Fri, Oct 27, 2017 at 6:37 PM, Apache Jenkins Server
>>>  wrote:
>>> > The Apache Jenkins build system has built Jackrabbit Oak (build #919)
>>> >
>>> > Status: Failure
>>> >
>>> > Check console output at https://builds.apache.org/job/
>>> Jackrabbit%20Oak/919/ to view the results.
>>> >
>>> > Changes:
>>> > [frm] OAK-6829 - Make the configuration of NetworkErrorProxy immutable
>>> >
>>> > [frm] OAK-6829 - Let the primary and the standby close the connection if
>>> an exception is caught
>>> >
>>> > [chetanm] OAK-6873 - UserInitializer should not use hard coded
>>> QueryIndexProvider
>>> >
>>> >
>>> >
>>> > Test results:
>>> > 1 tests failed.
>>> > FAILED:  org.apache.jackrabbit.oak.segment.InitializerTest.
>>> testInitializerSegment
>>> >
>>> > Error Message:
>>> > QueryIndexProvider yet not initialized
>>> >
>>> > Stack Trace:
>>> > java.lang.NullPointerException: QueryIndexProvider yet not initialized
>>> > at org.apache.jackrabbit.oak.segment.InitializerTest.
>>> testInitializerSegment(InitializerTest.java:51)
>>>
>>
>>
>>
>> --
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>> 
>>
>> Computer Scientist
>> http://www.adobe.com


BUILD FAILURE: Jackrabbit Oak - Build # 923 - Still Failing

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #923)

Status: Still Failing

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/923/ to 
view the results.

Changes:
[thomasm] OAK-6875 Lucene index: the query read limit is ignored

 

Test results:
46 tests failed.
FAILED:  
org.apache.jackrabbit.oak.upgrade.AuthorizableFolderEditorTest.verifyCorrectedNodeTypes

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyNodeTypesUpgradeTest.customNodeTypesAreRegistered

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned(CopyVersionHistoryTest.java:185)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.referencedOlderThanOrphaned

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions(CopyVersionHistoryTest.java:153)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.copyAllVersions

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)
Caused by: java.lang.NullPointerException: QueryIndexProvider yet not 
initialized
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.performCopy(CopyVersionHistoryTest.java:285)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate(CopyVersionHistoryTest.java:216)


FAILED:  
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferencedAfterDate

Error Message:
null

Stack Trace:
java.lang.NullPointerException
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.closeRepository(CopyVersionHistoryTest.java:312)


FAILED:  org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.onlyReferenced

Error Message:
Failed to copy content

Stack Trace:
javax.jcr.RepositoryException: Failed to copy content
at 
org.apache.jackrabbit.oak.upgrade.CopyVersionHistoryTest.migrate(CopyVersionHistoryTest.java:300)
at 
org.apache.jackrabbit.oak.upgrade.CopyVersi

BUILD FAILURE: Jackrabbit Oak - Build # 924 - Still Failing

2017-10-27 Thread Apache Jenkins Server
The Apache Jenkins build system has built Jackrabbit Oak (build #924)

Status: Still Failing

Check console output at https://builds.apache.org/job/Jackrabbit%20Oak/924/ to 
view the results.

Changes:
[chetanm] OAK-6873 - UserInitializer should not use hard coded 
QueryIndexProvider

Have a default QueryIndexProvider configured. This would be overwritten in Oak

 

Test results:
1 tests failed.
FAILED:  
org.apache.jackrabbit.oak.segment.standby.ExternalSharedStoreIT.testSyncBigBlob

Error Message:
expected:<{ root = { ... } }> but was:<{ root : { } }>

Stack Trace:
java.lang.AssertionError: expected:<{ root = { ... } }> but was:<{ root : { } }>

Re: [CompositeDataStore] Should we refactor AbstractDataStoreService and create AbstractDataStoreFactory?

2017-10-27 Thread Matt Ryan
Hi,

I updated the PR today with AbstractDataStoreService and an implementation
for it (FileDataStoreService).

@Tomek (and anyone else) please take a look and see if this is heading in
the direction you had in mind.

-MR


On October 26, 2017 at 4:20:56 PM, Matt Ryan (o...@mvryan.org) wrote:

Hi,

In case we want to move forward with the change to
AbstractDataStoreService, I’ve created a pull request [0] that outlines
what I think the changes would be to that class.  This PR should basically
cover the extent of the changes to existing classes that this refactor
entails.

I ran the full test suite with the change, and also ran a couple of
integration level tests at my disposal testing this change with
FileDataStore and S3DataStore.  As best I can tell everything checks out.

Please review and provide feedback, thanks in advance.  Or if we don’t want
the risk at this stage, I can explore other options.


[0] - https://github.com/apache/jackrabbit-oak/pull/71


-MR


On October 26, 2017 at 10:24:53 AM, Matt Ryan (o...@mvryan.org) wrote:

Hi,

In another thread there’s a discussion going on regarding the
implementation of CompositeDataStore and the need for a factory class in
order to have multiple data stores of the same type used by the composite.

I’ve been looking at how this is done by SegmentNodeStore as an example.
In the case of SegmentNodeStore, both SegmentNodeStoreService and
SegmentNodeStoreFactory share much of the logic for registering the segment
store.

To follow this pattern with the data stores is a bit more complex, since
most of the data store services inherit from AbstractDataStoreService.  It
would require a non-trivial refactor of AbstractDataStoreService plus
possibly the creation of a companion AbstractDataStoreFactory class that
the subsequent data store implementations would have to implement if they
are to be used with the composite (e.g. FileDataStoreFactory extends
AbstractDataStoreFactory) or something like that.

My question:  Is this something we want to try to do at this point for the
CompositeDataStore?  It may be the “best” approach in terms of code
organization, but it also makes the change much broader and far-reaching,
which means more risk at this stage for Oak 1.8 (or 2.0 or whatever).  An
alternative would be to make each factory (e.g. FileDataStoreFactory)
completely independent, sharing little to no code with the current
implementation, which will likely have a lot of duplicate code, but will
also make the CompositeDataStore addition more clean and less risky.

If we want to move forward with the refactor of AbstractDataStoreService
and formalize data store factory creation e.g. AbstractDataStoreFactory, I
could start that in a separate branch and issue it as a separate PR from
the composite data store.


WDYT?


-MR