[jira] [Comment Edited] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311966#comment-16311966
 ] 

Julian Reschke edited comment on OAK-7121 at 1/5/18 7:50 AM:
-

trunk: [r1820199|http://svn.apache.org/r1820199]
1.6: [r1820220|http://svn.apache.org/r1820220]
1.4: [r1820264|http://svn.apache.org/r1820264]



was (Author: reschke):
trunk: [r1820199|http://svn.apache.org/r1820199]
1.6: [r1820220|http://svn.apache.org/r1820220]


> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2
> Fix For: 1.6.8, 1.8, 1.7.15, 1.4.20
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Fix Version/s: 1.4.20

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2
> Fix For: 1.6.8, 1.8, 1.7.15, 1.4.20
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Labels: candidate_oak_1_0 candidate_oak_1_2  (was: candidate_oak_1_0 
candidate_oak_1_2 candidate_oak_1_4)

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2
> Fix For: 1.6.8, 1.8, 1.7.15, 1.4.20
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7109) rep:facet returns wrong results for complex queries

2018-01-04 Thread Vikas Saurabh (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16312632#comment-16312632
 ] 

Vikas Saurabh commented on OAK-7109:


[~diru], thanks for the investigation. I now see the issue, but unfortunately, 
with the current design of how query engine parses the queries and then passes 
sub-query to index providers, it's almost impossible to have correct faceting 
for complex queries.

The way I see the fundamental problem is:
* facet is an aggregation function => any query with rep:facet must be 
completely resolved by a single index
* currently index providers only resolve ANDed clauses => so, complex queries 
never get all their clauses passed down to (lucene) index

I really don't have any solution work-around for your problem though :(.

[~tmueller], would you have any ideas about how can we make such cases work?

PS: Btw, [~diru], the scoring across UNIONed clauses won't work (as you 
mentioned in the mail) - but that's a digression and won't solve the problem at 
hand as you correctly said that the different clauses across UNIONs won't be 
disjoint.

> rep:facet returns wrong results for complex queries
> ---
>
> Key: OAK-7109
> URL: https://issues.apache.org/jira/browse/OAK-7109
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: lucene
>Affects Versions: 1.6.7
>Reporter: Dirk Rudolph
>  Labels: facet
> Attachments: facetsInMultipleRoots.patch, 
> restrictionPropagationTest.patch
>
>
> eComplex queries in that case are queries, which are passed to lucene not 
> containing all original constraints. For example queries with multiple path 
> restrictions like:
> {code}
> select [rep:facet(simple/tags)] from [nt:base] as a where contains(a.[*], 
> 'ipsum') and (isdescendantnode(a,'/content1') or 
> isdescendantnode(a,'/content2'))
> {code}
> In that particular case the index planer gives ":fulltext:ipsum" to lucene 
> even though the index supports evaluating path constraints. 
> As counting the facets happens on the raw result of lucene, the returned 
> facets are incorrect. For example having the following content 
> {code}
> /content1/test/foo
>  + text = lorem ipsum
>  - simple/
>   + tags = tag1, tag2
> /content2/test/bar
>  + text = lorem ipsum
>  - simple/
>   + tags = tag1, tag2
> /content3/test/bar
>  + text = lorem ipsum
>  - simple/
>+ tags = tag1, tag2
> {code}
> the expected result for the dimensions of simple/tags and the query above is 
> - tag1: 2
> - tag2: 2
> as the result set is 2 results long and all documents are equal. The actual 
> result set is 
> - tag1: 3
> - tag2: 3
> as the path constraint is not handled by lucene.
> To workaround that the only solution that came to my mind is building the 
> [disjunctive normal 
> form|https://en.wikipedia.org/wiki/Disjunctive_normal_form] of my complex 
> query and executing a query for each of the disjunctive statements. As this 
> is expanding exponentially its only a theoretical solution, nothing for 
> production. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5534) Build timed out

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5534:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Build timed out
> ---
>
> Key: OAK-5534
> URL: https://issues.apache.org/jira/browse/OAK-5534
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration
>Reporter: Hudson
>  Labels: CI, test-failure, ubuntu
> Fix For: 1.0.41
>
> Attachments: console-1432-document-rdb.txt, console-1432-segment.txt, 
> console.txt
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=DOCUMENT_NS,profile=integrationTesting #1384 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=DOCUMENT_NS,profile=integrationTesting 
> #1384|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=integrationTesting/1384/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=integrationTesting/1384/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5532) Test failure: segment.standby.ExternalSharedStoreIT/BrokenNetworkTest.test...

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5532:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Test failure: segment.standby.ExternalSharedStoreIT/BrokenNetworkTest.test...
> -
>
> Key: OAK-5532
> URL: https://issues.apache.org/jira/browse/OAK-5532
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, segmentmk
>Reporter: Hudson
>  Labels: test-failure, ubuntu
> Fix For: 1.0.41
>
> Attachments: build1401-unit-tests.log, unit-tests.log
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.8 
> (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting #1384 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.8 (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting 
> #1384|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1384/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1384/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5609) Test failure: org.apache.jackrabbit.oak.spi.commit.BackgroundObserverTest.concurrentObservers

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5609:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Test failure: 
> org.apache.jackrabbit.oak.spi.commit.BackgroundObserverTest.concurrentObservers
> -
>
> Key: OAK-5609
> URL: https://issues.apache.org/jira/browse/OAK-5609
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, core
>Affects Versions: 1.0.36
>Reporter: Hudson
>  Labels: test-failure, windows
> Fix For: 1.0.41
>
> Attachments: unit-tests-1454.log, unit-tests.log
>
>
> Jenkins Windows CI failure: https://builds.apache.org/job/Oak-Win/
> The build Oak-Win/Windows slaves=Windows,jdk=JDK 1.8 (unlimited security) 
> 64-bit Windows only,nsfixtures=DOCUMENT_NS,profile=unittesting #443 has 
> failed.
> First failed run: [Oak-Win/Windows slaves=Windows,jdk=JDK 1.8 (unlimited 
> security) 64-bit Windows only,nsfixtures=DOCUMENT_NS,profile=unittesting 
> #443|https://builds.apache.org/job/Oak-Win/Windows%20slaves=Windows,jdk=JDK%201.8%20(unlimited%20security)%2064-bit%20Windows%20only,nsfixtures=DOCUMENT_NS,profile=unittesting/443/]
>  [console 
> log|https://builds.apache.org/job/Oak-Win/Windows%20slaves=Windows,jdk=JDK%201.8%20(unlimited%20security)%2064-bit%20Windows%20only,nsfixtures=DOCUMENT_NS,profile=unittesting/443/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5264) Test failure: SolrIndexHookIT.testPropertyAddition

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5264:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Test failure: SolrIndexHookIT.testPropertyAddition
> --
>
> Key: OAK-5264
> URL: https://issues.apache.org/jira/browse/OAK-5264
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, solr
>Affects Versions: 1.0.35, 1.2.22, 1.5.15
>Reporter: Hudson
>Assignee: Tommaso Teofili
>  Labels: test-failure, ubuntu
> Fix For: 1.0.41
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=SEGMENT_TAR,profile=integrationTesting #1323 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=SEGMENT_TAR,profile=integrationTesting 
> #1323|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=integrationTesting/1323/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=integrationTesting/1323/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5404) Test failure: SolrIndexQueryTestIT.testNativeMLTQuery and testNativeMLTQueryWithStream

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5404:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Test failure:  SolrIndexQueryTestIT.testNativeMLTQuery and 
> testNativeMLTQueryWithStream
> ---
>
> Key: OAK-5404
> URL: https://issues.apache.org/jira/browse/OAK-5404
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, solr
>Affects Versions: 1.0
>Reporter: Thomas Mueller
>Assignee: Tommaso Teofili
>  Labels: test-failure, ubuntu
> Fix For: 1.0.41
>
>
> {noformat}
> java.lang.AssertionError
>   at org.junit.Assert.fail(Assert.java:86)
>   at org.junit.Assert.assertTrue(Assert.java:41)
>   at org.junit.Assert.assertTrue(Assert.java:52)
>   at 
> org.apache.jackrabbit.oak.plugins.index.solr.query.SolrIndexQueryTestIT.testNativeMLTQueryWithStream(SolrIndexQueryTestIT.java:286)
> java.lang.AssertionError
>   at org.junit.Assert.fail(Assert.java:86)
>   at org.junit.Assert.assertTrue(Assert.java:41)
>   at org.junit.Assert.assertTrue(Assert.java:52)
>   at 
> org.apache.jackrabbit.oak.plugins.index.solr.query.SolrIndexQueryTestIT.testNativeMLTQuery(SolrIndexQueryTestIT.java:264)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-6976) CopyOnWriteDirectory_Segment_Test failure

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-6976:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> CopyOnWriteDirectory_Segment_Test failure
> -
>
> Key: OAK-6976
> URL: https://issues.apache.org/jira/browse/OAK-6976
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: lucene
>Affects Versions: 1.4.18
>Reporter: Marcel Reutegger
>Assignee: Chetan Mehrotra
> Fix For: 1.2.28, 1.4.20, 1.0.41
>
>
> This test only exists in branches 1.4 and older and was introduced as part of 
> OAK-5238. The test fails every now and then with (stack trace from 1.4):
> {noformat}
> java.lang.IllegalStateException: This builder does not exist: child-0
>   at 
> com.google.common.base.Preconditions.checkState(Preconditions.java:150)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:506)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:515)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.writeTree(CopyOnWriteDirectory_Segment_Test.java:158)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.copyOnWrite(CopyOnWriteDirectory_Segment_Test.java:111)
> {noformat}
> Please note that it fails more likely when the update.limit is set to 100, 
> which is the case for the maven build.
> I also ported the test to 1.6 and running it with the new segment-tar looks 
> OK. I don't know if this is because the copy-on-write or the segment-tar 
> implementation is different than in 1.4. 
> The affected versions are currently only set to 1.4.18, because there were no 
> releases off the 1.2 and 1.0 branches since OAK-5238 was backported.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5607) Test failure: security.authentication.ldap.LdapProviderTest.testGetUnknownUserByRef

2018-01-04 Thread Amit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain updated OAK-5607:
---
Fix Version/s: (was: 1.0.40)
   1.0.41

> Test failure: 
> security.authentication.ldap.LdapProviderTest.testGetUnknownUserByRef
> ---
>
> Key: OAK-5607
> URL: https://issues.apache.org/jira/browse/OAK-5607
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: auth-ldap, continuous integration
>Affects Versions: 1.0.36, 1.6.0
>Reporter: Hudson
>Assignee: Manfred Baedke
>  Labels: test-failure, windows
> Fix For: 1.0.41
>
> Attachments: unit-tests.log
>
>
> Jenkins Windows CI failure: https://builds.apache.org/job/Oak-Win/
> The build Oak-Win/Windows slaves=Windows,jdk=JDK 1.8 (unlimited security) 
> 64-bit Windows only,nsfixtures=SEGMENT_MK,profile=unittesting #441 has failed.
> First failed run: [Oak-Win/Windows slaves=Windows,jdk=JDK 1.8 (unlimited 
> security) 64-bit Windows only,nsfixtures=SEGMENT_MK,profile=unittesting 
> #441|https://builds.apache.org/job/Oak-Win/Windows%20slaves=Windows,jdk=JDK%201.8%20(unlimited%20security)%2064-bit%20Windows%20only,nsfixtures=SEGMENT_MK,profile=unittesting/441/]
>  [console 
> log|https://builds.apache.org/job/Oak-Win/Windows%20slaves=Windows,jdk=JDK%201.8%20(unlimited%20security)%2064-bit%20Windows%20only,nsfixtures=SEGMENT_MK,profile=unittesting/441/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Issue Comment Deleted] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Comment: was deleted

(was: Proposed change)

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.6.8, 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311966#comment-16311966
 ] 

Julian Reschke edited comment on OAK-7121 at 1/4/18 9:31 PM:
-

trunk: [r1820199|http://svn.apache.org/r1820199]
1.6: [r1820220|http://svn.apache.org/r1820220]



was (Author: reschke):
trunk: [r1820199|http://svn.apache.org/r1820199]


> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.6.8, 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Fix Version/s: 1.6.8

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.6.8, 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Labels: candidate_oak_1_0 candidate_oak_1_2 candidate_oak_1_4  (was: 
candidate_oak_1_0 candidate_oak_1_2 candidate_oak_1_4 candidate_oak_1_6)

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.6.8, 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Labels: candidate_oak_1_0 candidate_oak_1_2 candidate_oak_1_4 
candidate_oak_1_6  (was: )

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4, 
> candidate_oak_1_6
> Fix For: 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311966#comment-16311966
 ] 

Julian Reschke commented on OAK-7121:
-

trunk: [r1820199|http://svn.apache.org/r1820199]


> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4, 
> candidate_oak_1_6
> Fix For: 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke resolved OAK-7121.
-
   Resolution: Fixed
Fix Version/s: 1.7.15
   1.8

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.8, 1.7.15
>
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7076) Update Oak 1.0 to Jackrabbit 2.8.7

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311846#comment-16311846
 ] 

Julian Reschke commented on OAK-7076:
-

1.0: [r1820178|http://svn.apache.org/r1820178]


> Update Oak 1.0 to Jackrabbit 2.8.7
> --
>
> Key: OAK-7076
> URL: https://issues.apache.org/jira/browse/OAK-7076
> Project: Jackrabbit Oak
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.0.40
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (OAK-7076) Update Oak 1.0 to Jackrabbit 2.8.7

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke resolved OAK-7076.
-
Resolution: Fixed

> Update Oak 1.0 to Jackrabbit 2.8.7
> --
>
> Key: OAK-7076
> URL: https://issues.apache.org/jira/browse/OAK-7076
> Project: Jackrabbit Oak
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.0.40
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311527#comment-16311527
 ] 

Julian Reschke edited comment on OAK-7101 at 1/4/18 6:05 PM:
-

trunk: [r1819421|http://svn.apache.org/r1819421] 
[r1818906|http://svn.apache.org/r1818906] 
[r1818903|http://svn.apache.org/r1818903] 
[r1818902|http://svn.apache.org/r1818902] 
[r1818814|http://svn.apache.org/r1818814]
1.6: [r1819427|http://svn.apache.org/r1819427] 
[r1818907|http://svn.apache.org/r1818907] 
[r1818904|http://svn.apache.org/r1818904]
1.4: [r1819429|http://svn.apache.org/r1819429] 
[r1818908|http://svn.apache.org/r1818908] 
[r1818905|http://svn.apache.org/r1818905]
1.2: [r1820108|http://svn.apache.org/r1820108] 
[r1819473|http://svn.apache.org/r1819473] 
[r1818913|http://svn.apache.org/r1818913]
1.0: [r1820162|http://svn.apache.org/r1820162] 
[r1819496|http://svn.apache.org/r1819496] 
[r1818914|http://svn.apache.org/r1818914]



was (Author: reschke):
trunk: [r1819421|http://svn.apache.org/r1819421] 
[r1818906|http://svn.apache.org/r1818906] 
[r1818903|http://svn.apache.org/r1818903] 
[r1818902|http://svn.apache.org/r1818902] 
[r1818814|http://svn.apache.org/r1818814]
1.6: [r1819427|http://svn.apache.org/r1819427] 
[r1818907|http://svn.apache.org/r1818907] 
[r1818904|http://svn.apache.org/r1818904]
1.4: [r1819429|http://svn.apache.org/r1819429] 
[r1818908|http://svn.apache.org/r1818908] 
[r1818905|http://svn.apache.org/r1818905]
1.2: [r1820108|http://svn.apache.org/r1820108] 
[r1819473|http://svn.apache.org/r1819473] 
[r1818913|http://svn.apache.org/r1818913]
1.0: [r1819496|http://svn.apache.org/r1819496] 
[r1818914|http://svn.apache.org/r1818914]


> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311523#comment-16311523
 ] 

Julian Reschke edited comment on OAK-7101 at 1/4/18 6:04 PM:
-

Adding sync improvements in 1.2 ([r1820108|http://svn.apache.org/r1820108]) and 
1.0 ([r1820162|http://svn.apache.org/r1820162]) (not applicable to >= 1.4).


was (Author: reschke):
Adding sync improvements in 1.2 ([r1820108|http://svn.apache.org/r1820108]) and 
1.0 (not applicable to >= 1.4).

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311523#comment-16311523
 ] 

Julian Reschke edited comment on OAK-7101 at 1/4/18 3:44 PM:
-

Adding sync improvements in 1.2 ([r1820108|http://svn.apache.org/r1820108]) and 
1.0 (not applicable to >= 1.4).


was (Author: reschke):
Adding sync improvements in 1.2 and 1.0 (not applicable to >= 1.4).

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311527#comment-16311527
 ] 

Julian Reschke commented on OAK-7101:
-

trunk: [r1819421|http://svn.apache.org/r1819421] 
[r1818906|http://svn.apache.org/r1818906] 
[r1818903|http://svn.apache.org/r1818903] 
[r1818902|http://svn.apache.org/r1818902] 
[r1818814|http://svn.apache.org/r1818814]
1.6: [r1819427|http://svn.apache.org/r1819427] 
[r1818907|http://svn.apache.org/r1818907] 
[r1818904|http://svn.apache.org/r1818904]
1.4: [r1819429|http://svn.apache.org/r1819429] 
[r1818908|http://svn.apache.org/r1818908] 
[r1818905|http://svn.apache.org/r1818905]
1.2: [r1820108|http://svn.apache.org/r1820108] 
[r1819473|http://svn.apache.org/r1819473] 
[r1818913|http://svn.apache.org/r1818913]
1.0: [r1819496|http://svn.apache.org/r1819496] 
[r1818914|http://svn.apache.org/r1818914]


> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Issue Comment Deleted] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7101:

Comment: was deleted

(was: trunk: [r1819421|http://svn.apache.org/r1819421] 
[r1818906|http://svn.apache.org/r1818906] 
[r1818903|http://svn.apache.org/r1818903] 
[r1818902|http://svn.apache.org/r1818902] 
[r1818814|http://svn.apache.org/r1818814]
1.6: [r1819427|http://svn.apache.org/r1819427] 
[r1818907|http://svn.apache.org/r1818907] 
[r1818904|http://svn.apache.org/r1818904]
1.4: [r1819429|http://svn.apache.org/r1819429] 
[r1818908|http://svn.apache.org/r1818908] 
[r1818905|http://svn.apache.org/r1818905]
1.2: [r1819473|http://svn.apache.org/r1819473] 
[r1818913|http://svn.apache.org/r1818913]
1.0: [r1819496|http://svn.apache.org/r1819496] 
[r1818914|http://svn.apache.org/r1818914]
)

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311523#comment-16311523
 ] 

Julian Reschke commented on OAK-7101:
-

Adding sync improvements in 1.2 and 1.0 (not applicable to >= 1.4).

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-7121:

Attachment: OAK-7121.diff

Proposed change

> DocumentStore testing: allow config of DocumentMK.Builder in 
> AbstractDocumentStoreTest
> --
>
> Key: OAK-7121
> URL: https://issues.apache.org/jira/browse/OAK-7121
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Attachments: OAK-7121.diff
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (OAK-7121) DocumentStore testing: allow config of DocumentMK.Builder in AbstractDocumentStoreTest

2018-01-04 Thread Julian Reschke (JIRA)
Julian Reschke created OAK-7121:
---

 Summary: DocumentStore testing: allow config of DocumentMK.Builder 
in AbstractDocumentStoreTest
 Key: OAK-7121
 URL: https://issues.apache.org/jira/browse/OAK-7121
 Project: Jackrabbit Oak
  Issue Type: Improvement
  Components: documentmk
Reporter: Julian Reschke
Assignee: Julian Reschke
Priority: Minor






--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5418) Test failure: TomcatIT.testTomcat()

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5418:
--
Fix Version/s: (was: 1.4.19)

> Test failure: TomcatIT.testTomcat()
> ---
>
> Key: OAK-5418
> URL: https://issues.apache.org/jira/browse/OAK-5418
> Project: Jackrabbit Oak
>  Issue Type: Test
>  Components: continuous integration, examples
>Affects Versions: 1.4
>Reporter: Hudson
>Assignee: Chetan Mehrotra
>  Labels: test-failure, ubuntu
> Fix For: 1.4.20
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=DOCUMENT_NS,profile=unittesting #1357 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=DOCUMENT_NS,profile=unittesting 
> #1357|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=unittesting/1357/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=unittesting/1357/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5458) Test failure: RepositoryBootIT.repositoryLogin

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5458:
--
Fix Version/s: (was: 1.4.19)

> Test failure: RepositoryBootIT.repositoryLogin
> --
>
> Key: OAK-5458
> URL: https://issues.apache.org/jira/browse/OAK-5458
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, examples
>Affects Versions: 1.4, 1.5.18
>Reporter: Hudson
>Assignee: Chetan Mehrotra
>  Labels: test-failure, ubuntu
> Fix For: 1.6.8, 1.10, 1.4.20
>
> Attachments: unit-tests-1379.log
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.8 
> (latest),nsfixtures=SEGMENT_MK,profile=integrationTesting #1369 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.8 (latest),nsfixtures=SEGMENT_MK,profile=integrationTesting 
> #1369|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=SEGMENT_MK,profile=integrationTesting/1369/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=SEGMENT_MK,profile=integrationTesting/1369/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5470) Test failure: SecurityProviderRegistrationTest.testSecurityConfigurations2

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5470:
--
Fix Version/s: (was: 1.4.19)

> Test failure: SecurityProviderRegistrationTest.testSecurityConfigurations2
> --
>
> Key: OAK-5470
> URL: https://issues.apache.org/jira/browse/OAK-5470
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, pojosr
>Affects Versions: 1.2.23, 1.4.13
>Reporter: Hudson
>  Labels: test-failure, windows
> Fix For: 1.2.28, 1.4.20
>
> Attachments: sysout-1380.log, unit-tests-build-1371.log, 
> unit-tests.log
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=SEGMENT_TAR,profile=unittesting #1371 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=SEGMENT_TAR,profile=unittesting 
> #1371|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1371/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1371/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-6976) CopyOnWriteDirectory_Segment_Test failure

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-6976:
--
Fix Version/s: (was: 1.4.19)

> CopyOnWriteDirectory_Segment_Test failure
> -
>
> Key: OAK-6976
> URL: https://issues.apache.org/jira/browse/OAK-6976
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: lucene
>Affects Versions: 1.4.18
>Reporter: Marcel Reutegger
>Assignee: Chetan Mehrotra
> Fix For: 1.0.40, 1.2.28, 1.4.20
>
>
> This test only exists in branches 1.4 and older and was introduced as part of 
> OAK-5238. The test fails every now and then with (stack trace from 1.4):
> {noformat}
> java.lang.IllegalStateException: This builder does not exist: child-0
>   at 
> com.google.common.base.Preconditions.checkState(Preconditions.java:150)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:506)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:515)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.writeTree(CopyOnWriteDirectory_Segment_Test.java:158)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.copyOnWrite(CopyOnWriteDirectory_Segment_Test.java:111)
> {noformat}
> Please note that it fails more likely when the update.limit is set to 100, 
> which is the case for the maven build.
> I also ported the test to 1.6 and running it with the new segment-tar looks 
> OK. I don't know if this is because the copy-on-write or the segment-tar 
> implementation is different than in 1.4. 
> The affected versions are currently only set to 1.4.18, because there were no 
> releases off the 1.2 and 1.0 branches since OAK-5238 was backported.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5566) TestFailure: remote.http.handler.RemoteServerIT.testPatchLastRevisionAddMultiReferenceProperty

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5566:
--
Fix Version/s: (was: 1.4.19)

> TestFailure: 
> remote.http.handler.RemoteServerIT.testPatchLastRevisionAddMultiReferenceProperty
> --
>
> Key: OAK-5566
> URL: https://issues.apache.org/jira/browse/OAK-5566
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, remoting
>Reporter: Hudson
>  Labels: test-failure, ubuntu
> Fix For: 1.4.20
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.8 
> (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting #1396 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.8 (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting 
> #1396|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1396/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1396/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5963) Disable S3 proactive caching by default

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5963:
--
Fix Version/s: (was: 1.4.19)

> Disable S3 proactive caching by default
> ---
>
> Key: OAK-5963
> URL: https://issues.apache.org/jira/browse/OAK-5963
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: blob
>Reporter: Amit Jain
>Assignee: Amit Jain
>  Labels: candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.2.28, 1.4.20
>
>
> The older JR2 CachingDataStore which is extended by S3DataStore enables 
> proactive caching by default which leads to many binaries being downloaded 
> twice. This should be disabled by default in Oak.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-6976) CopyOnWriteDirectory_Segment_Test failure

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-6976:
--
Fix Version/s: 1.4.20

> CopyOnWriteDirectory_Segment_Test failure
> -
>
> Key: OAK-6976
> URL: https://issues.apache.org/jira/browse/OAK-6976
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: lucene
>Affects Versions: 1.4.18
>Reporter: Marcel Reutegger
>Assignee: Chetan Mehrotra
> Fix For: 1.0.40, 1.4.19, 1.2.28, 1.4.20
>
>
> This test only exists in branches 1.4 and older and was introduced as part of 
> OAK-5238. The test fails every now and then with (stack trace from 1.4):
> {noformat}
> java.lang.IllegalStateException: This builder does not exist: child-0
>   at 
> com.google.common.base.Preconditions.checkState(Preconditions.java:150)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:506)
>   at 
> org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:515)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.writeTree(CopyOnWriteDirectory_Segment_Test.java:158)
>   at 
> org.apache.jackrabbit.oak.plugins.index.lucene.CopyOnWriteDirectory_Segment_Test.copyOnWrite(CopyOnWriteDirectory_Segment_Test.java:111)
> {noformat}
> Please note that it fails more likely when the update.limit is set to 100, 
> which is the case for the maven build.
> I also ported the test to 1.6 and running it with the new segment-tar looks 
> OK. I don't know if this is because the copy-on-write or the segment-tar 
> implementation is different than in 1.4. 
> The affected versions are currently only set to 1.4.18, because there were no 
> releases off the 1.2 and 1.0 branches since OAK-5238 was backported.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5566) TestFailure: remote.http.handler.RemoteServerIT.testPatchLastRevisionAddMultiReferenceProperty

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5566:
--
Fix Version/s: 1.4.20

> TestFailure: 
> remote.http.handler.RemoteServerIT.testPatchLastRevisionAddMultiReferenceProperty
> --
>
> Key: OAK-5566
> URL: https://issues.apache.org/jira/browse/OAK-5566
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, remoting
>Reporter: Hudson
>  Labels: test-failure, ubuntu
> Fix For: 1.4.19, 1.4.20
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.8 
> (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting #1396 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.8 (latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting 
> #1396|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1396/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/1396/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5470) Test failure: SecurityProviderRegistrationTest.testSecurityConfigurations2

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5470:
--
Fix Version/s: 1.4.20

> Test failure: SecurityProviderRegistrationTest.testSecurityConfigurations2
> --
>
> Key: OAK-5470
> URL: https://issues.apache.org/jira/browse/OAK-5470
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, pojosr
>Affects Versions: 1.2.23, 1.4.13
>Reporter: Hudson
>  Labels: test-failure, windows
> Fix For: 1.4.19, 1.2.28, 1.4.20
>
> Attachments: sysout-1380.log, unit-tests-build-1371.log, 
> unit-tests.log
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=SEGMENT_TAR,profile=unittesting #1371 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=SEGMENT_TAR,profile=unittesting 
> #1371|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1371/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1371/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5963) Disable S3 proactive caching by default

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5963:
--
Fix Version/s: 1.4.20

> Disable S3 proactive caching by default
> ---
>
> Key: OAK-5963
> URL: https://issues.apache.org/jira/browse/OAK-5963
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: blob
>Reporter: Amit Jain
>Assignee: Amit Jain
>  Labels: candidate_oak_1_2, candidate_oak_1_4
> Fix For: 1.4.19, 1.2.28, 1.4.20
>
>
> The older JR2 CachingDataStore which is extended by S3DataStore enables 
> proactive caching by default which leads to many binaries being downloaded 
> twice. This should be disabled by default in Oak.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5418) Test failure: TomcatIT.testTomcat()

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5418:
--
Fix Version/s: 1.4.20

> Test failure: TomcatIT.testTomcat()
> ---
>
> Key: OAK-5418
> URL: https://issues.apache.org/jira/browse/OAK-5418
> Project: Jackrabbit Oak
>  Issue Type: Test
>  Components: continuous integration, examples
>Affects Versions: 1.4
>Reporter: Hudson
>Assignee: Chetan Mehrotra
>  Labels: test-failure, ubuntu
> Fix For: 1.4.19, 1.4.20
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 
> (latest),nsfixtures=DOCUMENT_NS,profile=unittesting #1357 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.7 (latest),nsfixtures=DOCUMENT_NS,profile=unittesting 
> #1357|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=unittesting/1357/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=DOCUMENT_NS,profile=unittesting/1357/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-5458) Test failure: RepositoryBootIT.repositoryLogin

2018-01-04 Thread Davide Giannella (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-5458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella updated OAK-5458:
--
Fix Version/s: 1.4.20

> Test failure: RepositoryBootIT.repositoryLogin
> --
>
> Key: OAK-5458
> URL: https://issues.apache.org/jira/browse/OAK-5458
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: continuous integration, examples
>Affects Versions: 1.4, 1.5.18
>Reporter: Hudson
>Assignee: Chetan Mehrotra
>  Labels: test-failure, ubuntu
> Fix For: 1.4.19, 1.6.8, 1.10, 1.4.20
>
> Attachments: unit-tests-1379.log
>
>
> Jenkins CI failure: 
> https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.8 
> (latest),nsfixtures=SEGMENT_MK,profile=integrationTesting #1369 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 
> 1.8 (latest),nsfixtures=SEGMENT_MK,profile=integrationTesting 
> #1369|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=SEGMENT_MK,profile=integrationTesting/1369/]
>  [console 
> log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=SEGMENT_MK,profile=integrationTesting/1369/console]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311145#comment-16311145
 ] 

Marcel Reutegger commented on OAK-7101:
---

Are we working on the same branch? I'm using 1.2. Any other changes to the 
test? You mentioned earlier reducing the cache size reproduces the issue more 
likely. Though, I did reduce it as well but still cannot reproduce with the 
additional locking.

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Julian Reschke (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311131#comment-16311131
 ] 

Julian Reschke commented on OAK-7101:
-

Tried:

{noformat}
--- 
src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
  (Revision 1820046)
+++ 
src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
  (Arbeitskopie)
@@ -1693,13 +1693,12 @@
 if (lastmodified == row.getModified() && lastmodified >= 1) {
 if (modCount <= cachedModCount) {
 // we can use the cached document
-Lock lock = locks.acquire(row.getId());
+Lock lock = locks.acquire(id);
 try {
 if (qp.mayUpdate(id)) {
 inCache.markUpToDate(now);
 }
-}
-finally {
+} finally {
 lock.unlock();
 }
 return castAsT(inCache);
@@ -1710,11 +1709,15 @@
 NodeDocument fresh = (NodeDocument) convertFromDBObject(collection, 
row);
 fresh.seal();

-if (!qp.mayUpdate(id)) {
-return castAsT(fresh);
+Lock lock = locks.acquire(id);
+try {
+if (qp.mayUpdate(id)) {
+nodesCache.putIfNewer(fresh);
+}
+} finally {
+lock.unlock();
 }

-nodesCache.putIfNewer(fresh);
 return castAsT(fresh);
 }
{noformat}

but test continues to fail...

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-6373) oak-run check should also check checkpoints

2018-01-04 Thread Andrei Dulceanu (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311107#comment-16311107
 ] 

Andrei Dulceanu edited comment on OAK-6373 at 1/4/18 10:05 AM:
---

While working on this, it occurred to me that by adding this improvement, we'll 
make the following change to how {{oak-run check}} works: when the new option, 
let's say {{--checkpoints}} will be added, then it will mean that *only the 
checkpoints specified* will be checked. Without the option, the command will 
work as previously, checking the {{/root}} path of the repository. I agree with 
[~frm]'s suggestion of internally figuring out the paths needed to be checked 
when {{--filter}} is present.

[~frm], [~mduerig], WDYT? Is this the expected outcome (i.e. having a way to 
switch between checking {{/root}} or some/all checkpoints, but not both at the 
same time)? 


was (Author: dulceanu):
While working on this, it occurred to me that by adding this improvement will 
make the following change to how {{oak-run check}} works: when the new option, 
let's say {{--checkpoints}} will be added, then it will mean that *only the 
checkpoints specified* will be checked. Without the option, the command will 
work as previously, checking the {{/root}} path of the repository. I agree with 
[~frm]'s suggestion of internally figuring out the paths needed to be checked 
when {{--filter}} is present.

[~frm], [~mduerig], WDYT? Is this the expected outcome (i.e. having a way to 
switch between checking {{/root}} or some/all checkpoints, but not both at the 
same time)? 

> oak-run check should also check checkpoints 
> 
>
> Key: OAK-6373
> URL: https://issues.apache.org/jira/browse/OAK-6373
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: run, segment-tar
>Reporter: Michael Dürig
>Assignee: Andrei Dulceanu
>  Labels: tooling
> Fix For: 1.8
>
>
> {{oak-run check}} does currently *not* traverse and check the items in the 
> checkpoint. I think we should change this and add an option to traverse all, 
> some or none of the checkpoints. When doing this we need to keep in mind the 
> interaction of this new feature with the {{filter}} option: the paths passed 
> through this option need then be prefixed with {{/root}}. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-6373) oak-run check should also check checkpoints

2018-01-04 Thread Andrei Dulceanu (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311107#comment-16311107
 ] 

Andrei Dulceanu commented on OAK-6373:
--

While working on this, it occurred to me that by adding this improvement will 
make the following change to how {{oak-run check}} works: when the new option, 
let's say {{--checkpoints}} will be added, then it will mean that *only the 
checkpoints specified* will be checked. Without the option, the command will 
work as previously, checking the {{/root}} path of the repository. I agree with 
[~frm]'s suggestion of internally figuring out the paths needed to be checked 
when {{--filter}} is present.

[~frm], [~mduerig], WDYT? Is this the expected outcome (i.e. having a way to 
switch between checking {{/root}} or some/all checkpoints, but not both at the 
same time)? 

> oak-run check should also check checkpoints 
> 
>
> Key: OAK-6373
> URL: https://issues.apache.org/jira/browse/OAK-6373
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: run, segment-tar
>Reporter: Michael Dürig
>Assignee: Andrei Dulceanu
>  Labels: tooling
> Fix For: 1.8
>
>
> {{oak-run check}} does currently *not* traverse and check the items in the 
> checkpoint. I think we should change this and add an option to traverse all, 
> some or none of the checkpoints. When doing this we need to keep in mind the 
> interaction of this new feature with the {{filter}} option: the paths passed 
> through this option need then be prefixed with {{/root}}. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311076#comment-16311076
 ] 

Marcel Reutegger commented on OAK-7101:
---

Diagram was created with sequencediagram.org and the following definition:
{noformat}
Query->QueryContext:create
Query->DB:query
Query->Cache:getIfPresent
Update->Cache:readDocumentCached
opt when document was in cache and considered fresh
Query->Query:L(a)
Query->QueryContext:mayUpdate
Query->Cache:markUpToDate(inCache)
Query->Query:L(r)
end
Update->Update:L(a)
Update->DB:update
Query->QueryContext:mayUpdate
Update->QueryContext:addKey
Update->Cache:replaceCachedDocument
Query->Cache:putIfNewer(fresh)
Update->Update:L(r)
Query->QueryContext:destroy
{noformat}

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311071#comment-16311071
 ] 

Marcel Reutegger commented on OAK-7101:
---

When {{mayUpdate}} and {{putIfNewer}} are surrounded with a lock, they will 
either get executed before or after the update. Both will result in a correct 
execution.

# Before: mayUpdate() returns {{true}} and the {{fresh}} (correct) document is 
put into the cache. The update modifies the document and adds the key into the 
query context (does not affect the query in this case). Then either replace the 
document put into the cache by the query, or does not update the cache in case 
the document was evicted in the meantime.
# After: the update modifies the document and adds the key to the query 
context. Assuming the document is not present in the cache, 
replaceCachedDocument will be a NOP. The query then calls mayUpdate, which 
returns {{false}}.

With this additional synchronization the test runs successfully on my machine 
for quite a while now.

[~reschke], WDYT?

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311054#comment-16311054
 ] 

Marcel Reutegger edited comment on OAK-7101 at 1/4/18 9:15 AM:
---

The following diagram shows a possible sequence of calls for a concurrently 
executed query and update:

!oak-7101.png!

The critical section is when the update adds the key to the query context and 
then calls {{replaceCachedDocument}}. Those methods can interleave with the 
query's call to {{mayUpdate}} and {{putIfNewer}}. The problem only occurs when 
the cache does not contain the document at this point. 
{{replaceCachedDocument}} then becomes a NOP and {{putIfNewer}} puts a stale 
document in the cache.


was (Author: mreutegg):
The following diagram shows a possible sequence of calls for a concurrently 
executed query and update:

[^OAK-7101.png]

The critical section is when the update adds the key to the query context and 
then calls {{replaceCachedDocument}}. Those methods can interleave with the 
query's call to {{mayUpdate}} and {{putIfNewer}}. The problem only occurs when 
the cache does not contain the document at this point. 
{{replaceCachedDocument}} then becomes a NOP and {{putIfNewer}} puts a stale 
document in the cache.

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger updated OAK-7101:
--
Attachment: oak-7101.png

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger updated OAK-7101:
--
Attachment: (was: OAK-7101.png)

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OAK-7101) Stale documents in RDBDocumentStore cache

2018-01-04 Thread Marcel Reutegger (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-7101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger updated OAK-7101:
--
Attachment: OAK-7101.png

The following diagram shows a possible sequence of calls for a concurrently 
executed query and update:

[^OAK-7101.png]

The critical section is when the update adds the key to the query context and 
then calls {{replaceCachedDocument}}. Those methods can interleave with the 
query's call to {{mayUpdate}} and {{putIfNewer}}. The problem only occurs when 
the cache does not contain the document at this point. 
{{replaceCachedDocument}} then becomes a NOP and {{putIfNewer}} puts a stale 
document in the cache.

> Stale documents in RDBDocumentStore cache
> -
>
> Key: OAK-7101
> URL: https://issues.apache.org/jira/browse/OAK-7101
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: rdbmk
>Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>Reporter: Marcel Reutegger
>Assignee: Julian Reschke
> Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
> Attachments: OAK-7101.patch, OAK-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)