[jira] [Closed] (OAK-8494) Support AWS Key Managed Service (SSE-KMS)

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8494.


> Support AWS Key Managed Service (SSE-KMS)
> -
>
> Key: OAK-8494
> URL: https://issues.apache.org/jira/browse/OAK-8494
> Project: Jackrabbit Oak
>  Issue Type: New Feature
>Reporter: Ankita Agarwal
>Assignee: Amit Jain
>Priority: Major
> Fix For: 1.26.0, 1.22.2
>
>
> We need to extend the encryption model to support AWS Key Managed Service 
> (SSE-KMS) [0][1] on top of what we support today, S3-Managed Keys (SSE-S3).
> This is our preferred solution in Managed Services to manage the encryption 
> keys.
> [0] [http://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html]
> [1] [http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8906) RDBDocumentStore on SQL Server (additional diags) log DB creation time

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8906.


> RDBDocumentStore on SQL Server (additional diags) log DB creation time
> --
>
> Key: OAK-8906
> URL: https://issues.apache.org/jira/browse/OAK-8906
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8882) RDBBlobStore: dump table structure on startup

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8882.


> RDBBlobStore: dump table structure on startup
> -
>
> Key: OAK-8882
> URL: https://issues.apache.org/jira/browse/OAK-8882
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8918) RDBBlobStore: warn when legacy (SQLServer) default collation is active

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8918.


> RDBBlobStore: warn when legacy (SQLServer) default collation is active
> --
>
> Key: OAK-8918
> URL: https://issues.apache.org/jira/browse/OAK-8918
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8907) RDBDocumentStore: change diagnostics from String to Map

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8907.


> RDBDocumentStore: change diagnostics from String to Map
> ---
>
> Key: OAK-8907
> URL: https://issues.apache.org/jira/browse/OAK-8907
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>
> ...so they can be inspected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8913) RDB*Store: extract "additionalDiagnostics" code into separate class for re-use from RDBBlobStore

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8913.


> RDB*Store: extract "additionalDiagnostics" code into separate class for 
> re-use from RDBBlobStore
> 
>
> Key: OAK-8913
> URL: https://issues.apache.org/jira/browse/OAK-8913
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
> Attachments: OAK-8913.diff
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8909) RDBBlobStore: when creating META table for SQL Server, assign readable name for PK

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8909.


> RDBBlobStore: when creating META table for SQL Server, assign readable name 
> for PK
> --
>
> Key: OAK-8909
> URL: https://issues.apache.org/jira/browse/OAK-8909
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8915) RDBDocumentStore: use setNString() for columns known to be of type N*CHAR

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8915.


> RDBDocumentStore: use setNString() for columns known to be of type N*CHAR
> -
>
> Key: OAK-8915
> URL: https://issues.apache.org/jira/browse/OAK-8915
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>
> Microsoft's JDBC driver supports a connection property 
> "sendStringParametersAsUnicode" 
> ().
>  When set to false, RDBDocumentStore would fail as the DATA column indeed 
> requires Unicode.
> The fix is to detect the type of the DATA column (similar on how we 
> special-case ID), and use setNString() for these cases.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8932) RDBDocumentStore: allow RDBVersionGC support fallback to simpler algorithm

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8932.


> RDBDocumentStore: allow RDBVersionGC support fallback to simpler algorithm
> --
>
> Key: OAK-8932
> URL: https://issues.apache.org/jira/browse/OAK-8932
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Major
>  Labels: candidate_oak_1_6
> Fix For: 1.26.0, 1.10.9, 1.8.21, 1.22.2
>
> Attachments: OAK-8932.diff
>
>
> The current (new) algorithm (introduced in OAK-5855) may cause SELECT and 
> DELETE statements to run concurrently, which might cause problems on certain 
> DBs, such as SQL Server.
> Added a fallback (triggered by a system property) to the older (but slower) 
> algorithm. Select it by setting system property like that:
> {noformat}
> -Dorg.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport.MODE=1 
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8936) ValueImpl does not properly set domain override flag of BlobDownloadOptions

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8936.


> ValueImpl does not properly set domain override flag of BlobDownloadOptions
> ---
>
> Key: OAK-8936
> URL: https://issues.apache.org/jira/browse/OAK-8936
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-cloud
>Affects Versions: 1.22.1
>Reporter: Matt Ryan
>Assignee: Matt Ryan
>Priority: Critical
>  Labels: candidate_oak_1_22
> Fix For: 1.26.0, 1.22.2
>
> Attachments: OAK-8936.patch
>
>
> In {{org.apache.jackrabbit.oak.plugins.value.jcr.ValueImpl.getDownloadURI()}} 
> when converting a {{BinaryDownloadOptions}} to a {{BlobDownloadOptions}}, the 
> conversion does not take the domain override flag into account.  This flag 
> must be preserved in the conversion.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8925) RDBDocumentStore: for SQL Server stats, include type_desc and fill_factor

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8925.


> RDBDocumentStore: for SQL Server stats, include type_desc and fill_factor
> -
>
> Key: OAK-8925
> URL: https://issues.apache.org/jira/browse/OAK-8925
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8875) Update aws-java-sdk-osgi version to 1.11.700 in Oak-blob-cloud

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8875.


> Update aws-java-sdk-osgi version to 1.11.700 in Oak-blob-cloud
> --
>
> Key: OAK-8875
> URL: https://issues.apache.org/jira/browse/OAK-8875
> Project: Jackrabbit Oak
>  Issue Type: Task
>Reporter: Ankita Agarwal
>Assignee: Amit Jain
>Priority: Major
> Fix For: 1.26.0, 1.10.9, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8919) examples: update Tomcat dependency to 7.0.100

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8919.


> examples: update Tomcat dependency to 7.0.100
> -
>
> Key: OAK-8919
> URL: https://issues.apache.org/jira/browse/OAK-8919
> Project: Jackrabbit Oak
>  Issue Type: Task
>  Components: examples
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_6
> Fix For: 1.26.0, 1.10.9, 1.8.21, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (OAK-8916) RDBBlobStore: log additional DB diagnostics (align with RDBDocumentStore)

2020-03-15 Thread Nitin Gupta (Jira)


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

Nitin Gupta closed OAK-8916.


> RDBBlobStore: log additional DB diagnostics (align with RDBDocumentStore)
> -
>
> Key: OAK-8916
> URL: https://issues.apache.org/jira/browse/OAK-8916
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_oak_1_10
> Fix For: 1.26.0, 1.22.2
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OAK-8908) RDBBlobStore on SQL Server: bad performance when default collation is of type SQL*

2020-03-15 Thread Solomon Rutzky (Jira)


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

Solomon Rutzky commented on OAK-8908:
-

Hi there. If this fix is to _not_ send a Unicode string if the column's 
datatype is not Unicode, then certainly this is an improvement. However, there 
are still two better options for improving performance in these scenarios:
 # Ideally, if the data is truly hex / binary data, then it should be stored in 
a {{BINARY}} / {{VARBINARY}} datatype instead of a string datatype. If the 
value is a consistent length/size, then the datatype should be {{BINARY(32)}}, 
else it should be {{VARBINARY(32)}}. This has two benefits:
 ## it cuts the storage size in half (which benefits performance, especially as 
the number of rows increases)
 ## comparison (i.e. filtering) and sorting operations are much faster (why 
suffer through culture-specific linguistic rules that will never be needed?)
 # If, for some reason, a binary datatype cannot be used (perhaps not all 
supported DB options offer a binary datatype), then at the very least a binary 
collation should be used. This has the following benefit: comparison (i.e. 
filtering) and sorting operations are much faster (why suffer through 
culture-specific linguistic rules that will never be needed?). The {{CREATE 
TABLE}} statements should be updated to include a {{COLLATE collation_name}} 
clause on the {{ID}} column so that the collation of the database is 
irrelevant. The particular binary collation to use depends on the minimum 
version of SQL Server that this project supports:
 ## For SQL Server 2000 and newer, use {{Latin1_General_BIN}} (_since you are 
only storing hex values, this option is probably fine_)
 ## For SQL Server 2005 and newer, use {{Latin1_General_BIN2}}
 ## For SQL Server 2008 and newer, use {{Latin1_General_100_BIN2}}

 

Take care,
 Solomon...
 [https://SqlQuantumLift.com/|https://sqlquantumlift.com/]
 [https://SqlQuantumLeap.com/|https://sqlquantumleap.com/]
 [https://SQLsharp.com/|https://sqlsharp.com/]

> RDBBlobStore on SQL Server: bad performance when default collation is of type 
> SQL*
> --
>
> Key: OAK-8908
> URL: https://issues.apache.org/jira/browse/OAK-8908
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Major
> Fix For: 1.28.0
>
> Attachments: OAK-8908-1.6.diff, OAK-8908.diff
>
>
> RDBBlobStore uses a 64-char primary key (digest in hex).
> Unfortunately, this causes performance issues on MS SQL Server, when the 
> collation for that column is of type "SQL*" (see links). These types of 
> collations are deprecated, but still the default for installations on the 
> "EN_US" locale.
> The performance loss can be observed by changing the collation on an existing 
> install, and then enable performance logging on RDBBlobStore.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-3658) Test failures: JackrabbitNodeTest#testRename and testRenameEventHandling

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-3658:

Fix Version/s: (was: 1.26.0)
   1.28.0

> Test failures: JackrabbitNodeTest#testRename and testRenameEventHandling
> 
>
> Key: OAK-3658
> URL: https://issues.apache.org/jira/browse/OAK-3658
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: jcr
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Minor
> Fix For: 1.28.0
>
>
> Tests fail regularly on trunk - {{JackrabbitNodeTest#testRename}} and 
> {{JackrabbitNodeTest#testRenameEventHandling}}.
> {noformat}
> Test set: org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest
> ---
> Tests run: 8, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.106 sec <<< 
> FAILURE!
> testRenameEventHandling(org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest)  
> Time elapsed: 0.01 sec  <<< ERROR!
> javax.jcr.nodetype.ConstraintViolationException: Item is protected.
>   at 
> org.apache.jackrabbit.oak.jcr.session.ItemImpl$ItemWriteOperation.checkPreconditions(ItemImpl.java:98)
>   at 
> org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.prePerform(SessionDelegate.java:614)
>   at 
> org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:270)
>   at 
> org.apache.jackrabbit.oak.jcr.session.NodeImpl.rename(NodeImpl.java:1485)
>   at 
> org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest.testRenameEventHandling(JackrabbitNodeTest.java:124)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at junit.framework.TestCase.runTest(TestCase.java:176)
>   at junit.framework.TestCase.runBare(TestCase.java:141)
>   at junit.framework.TestResult$1.protect(TestResult.java:122)
>   at junit.framework.TestResult.runProtected(TestResult.java:142)
>   at junit.framework.TestResult.run(TestResult.java:125)
>   at junit.framework.TestCase.run(TestCase.java:129)
>   at 
> org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:464)
>   at junit.framework.TestSuite.runTest(TestSuite.java:252)
>   at junit.framework.TestSuite.run(TestSuite.java:247)
>   at 
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>   at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
>   at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
>   at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>   at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>   at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>   at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>   at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> testRename(org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest)  Time elapsed: 
> 0.007 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<[a]> but was:<[rep:policy]>
>   at junit.framework.Assert.assertEquals(Assert.java:100)
>   at junit.framework.Assert.assertEquals(Assert.java:107)
>   at junit.framework.TestCase.assertEquals(TestCase.java:269)
>   at 
> org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest.testRename(JackrabbitNodeTest.java:74)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at junit.framework.TestCase.runTest(TestCase.java:176)
>   at junit.framework.TestCase.runBare(TestCase.java:141)
>   at junit.framework.TestResult$1.protect(TestResult.java:122)
>   at 

[jira] [Updated] (OAK-7261) DocumentStore: inconsistent behaviour for invalid Strings as document ID

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-7261:

Fix Version/s: (was: 1.26.0)
   1.28.0

> DocumentStore: inconsistent behaviour for invalid Strings as document ID
> 
>
> Key: OAK-7261
> URL: https://issues.apache.org/jira/browse/OAK-7261
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: documentmk, mongomk, rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Major
> Fix For: 1.28.0
>
>
> - H2DB and Derby roundtrip any string
>  - PostgreSQL rejects the invalid string early
>  - DB2 and Oracle fail the same way as segment store (they persist the 
> replacement character) (see OAK-5506)
>  - MySQL and SQLServer fail the same way as DB2 and Oracle, but here it's the 
> RDBDocumentStore's fault, because the ID column is binary, and we transform 
> to byte sequences ourselves
>  - Mongo claims it saved the document, but upon lookup, returns something 
> with a different ID
> Note that due to how RDB reads work, the returned document has the ID that 
> was requested, not what the DB actually contains.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-6303) Cache in CachingBlobStore might grow beyond configured limit

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-6303:

Fix Version/s: (was: 1.26.0)
   1.28.0

> Cache in CachingBlobStore might grow beyond configured limit
> 
>
> Key: OAK-6303
> URL: https://issues.apache.org/jira/browse/OAK-6303
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob, core
>Reporter: Julian Reschke
>Assignee: Thomas Mueller
>Priority: Major
> Fix For: 1.28.0
>
> Attachments: OAK-6303-test.diff, OAK-6303.diff
>
>
> It appears that depending on actual cache entry sizes, the {{CacheLIRS}} 
> might grow beyond the configured limit.
> For {{RDBBlobStore}}, the limit is currently configured to 16MB, yet storing 
> random 2M entries appears to fill the cache with 64MB of data (according to 
> it's own stats).
> The attached test case reproduces this.
> (it seems this is caused by the fact that each of the 16 segments of the 
> cache can hold 2 entries, no matter how big they are...)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-3373) Observers dont survive store restart (was: LuceneIndexProvider: java.lang.IllegalStateException: open)

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-3373:

Fix Version/s: (was: 1.26.0)
   1.28.0

> Observers dont survive store restart (was: LuceneIndexProvider: 
> java.lang.IllegalStateException: open)
> --
>
> Key: OAK-3373
> URL: https://issues.apache.org/jira/browse/OAK-3373
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: core
>Affects Versions: 1.3.5
>Reporter: Stefan Egli
>Priority: Minor
> Fix For: 1.28.0
>
>
> The following exception occurs when stopping, then immediately re-starting 
> the oak-core bundle (which was done as part of testing for OAK-3250 - but can 
> be reproduced independently). It's not clear what the consequences are 
> though..
> {code}08.09.2015 14:20:26.960 *ERROR* [oak-lucene-0] 
> org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider Uncaught 
> exception in 
> org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider@3a4a6c5c
> org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: Error 
> occurred while fetching children for path /oak:index/authorizables
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentStoreException.convert(DocumentStoreException.java:48)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:902)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildNodes(DocumentNodeStore.java:1082)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeEntries(DocumentNodeState.java:508)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.access$100(DocumentNodeState.java:65)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState$ChildNodeEntryIterator.fetchMore(DocumentNodeState.java:716)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState$ChildNodeEntryIterator.(DocumentNodeState.java:681)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState$1.iterator(DocumentNodeState.java:289)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:129)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:303)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.compareAgainstBaseState(DocumentNodeState.java:359)
> at 
> org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:140)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:303)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.compareAgainstBaseState(DocumentNodeState.java:359)
> at 
> org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:140)
> at 
> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:303)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.compareAgainstBaseState(DocumentNodeState.java:359)
> at 
> org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
> at 
> org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.update(IndexTracker.java:108)
> at 
> org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider.contentChanged(LuceneIndexProvider.java:73)
> at 
> org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:127)
> at 
> org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:121)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalStateException: open
> at org.bson.util.Assertions.isTrue(Assertions.java:36)
> at 
> com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:367)
> at com.mongodb.Mongo.isMongosConnection(Mongo.java:622)
> at com.mongodb.DBCursor._check(DBCursor.java:494)
> at com.mongodb.DBCursor._hasNext(DBCursor.java:621)
> at 

[jira] [Updated] (OAK-8288) fix javadoc:javadoc for jdk >= 13

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8288:

Fix Version/s: (was: 1.26.0)
   1.28.0

> fix javadoc:javadoc for jdk >= 13
> -
>
> Key: OAK-8288
> URL: https://issues.apache.org/jira/browse/OAK-8288
> Project: Jackrabbit Oak
>  Issue Type: Bug
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.28.0
>
> Attachments: JavaDocHtmlHeaderTest.java
>
>
> Javadoc in JDK 13 makes additional HTML validity checks:
>  * nesting of headlines ( after  is an error)
>  * empty  tags



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8657) SimpleCredentialsSupport uses Guava API in exported API

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8657:

Fix Version/s: (was: 1.26.0)
   1.28.0

> SimpleCredentialsSupport uses Guava API in exported API
> ---
>
> Key: OAK-8657
> URL: https://issues.apache.org/jira/browse/OAK-8657
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: security-spi
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Blocker
> Fix For: 1.28.0
>
>
> {noformat}
> @Override
> @NotNull
> public ImmutableSet getCredentialClasses() {
> return ImmutableSet.of(SimpleCredentials.class);
> }
> {noformat}
> We should fix this to use a regular `Set` (as in the implemented interface). 
> However, this would be an incompatible API change; we could do that in sync 
> with OAK-7358.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8815) Javadoc build fails if using Java 11

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8815:

Fix Version/s: (was: 1.26.0)
   1.28.0

> Javadoc build fails if using Java 11
> 
>
> Key: OAK-8815
> URL: https://issues.apache.org/jira/browse/OAK-8815
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: doc
>Affects Versions: 1.20.0
>Reporter: Matt Ryan
>Priority: Major
> Fix For: 1.28.0
>
>
> Trying to build the Javadocs when using Java 11 fails. If you specify Java 8 
> when building the Javadocs, the build succeeds.
> Command I'm using to build the Javadocs:  {{mvn site -Pjavadoc}} (as 
> described in the {{oak-doc}} readme).
> I will include more information on the errors in comments.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8717) Remove deprecated Guava-based APIs

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8717:

Fix Version/s: (was: 1.26.0)
   1.28.0

> Remove deprecated Guava-based APIs
> --
>
> Key: OAK-8717
> URL: https://issues.apache.org/jira/browse/OAK-8717
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Major
> Fix For: 1.28.0
>
> Attachments: OAK-8717.diff
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8908) RDBBlobStore on SQL Server: bad performance when default collation is of type SQL*

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8908:

Fix Version/s: (was: 1.26.0)
   1.28.0

> RDBBlobStore on SQL Server: bad performance when default collation is of type 
> SQL*
> --
>
> Key: OAK-8908
> URL: https://issues.apache.org/jira/browse/OAK-8908
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: rdbmk
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Major
> Fix For: 1.28.0
>
> Attachments: OAK-8908-1.6.diff, OAK-8908.diff
>
>
> RDBBlobStore uses a 64-char primary key (digest in hex).
> Unfortunately, this causes performance issues on MS SQL Server, when the 
> collation for that column is of type "SQL*" (see links). These types of 
> collations are deprecated, but still the default for installations on the 
> "EN_US" locale.
> The performance loss can be observed by changing the collation on an existing 
> install, and then enable performance logging on RDBBlobStore.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8859) RDB*Store: update Oracle JDBC dependency to 19.3.0.0

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8859:

Fix Version/s: (was: 1.26.0)
   1.28.0

> RDB*Store: update Oracle JDBC dependency to 19.3.0.0
> 
>
> Key: OAK-8859
> URL: https://issues.apache.org/jira/browse/OAK-8859
> Project: Jackrabbit Oak
>  Issue Type: Technical task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.28.0
>
> Attachments: OAK-8859.diff
>
>
> See 
> .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OAK-8952) Test failure: DataStoreBlobStoreStatsTest.testDSBSGetRecordErrorStats

2020-03-15 Thread Hudson (Jira)


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

Hudson commented on OAK-8952:
-

Build is still failing.
Failed run: [Jackrabbit Oak 
#2662|https://builds.apache.org/job/Jackrabbit%20Oak/2662/] [console 
log|https://builds.apache.org/job/Jackrabbit%20Oak/2662/console]

> Test failure: DataStoreBlobStoreStatsTest.testDSBSGetRecordErrorStats
> -
>
> Key: OAK-8952
> URL: https://issues.apache.org/jira/browse/OAK-8952
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins, continuous integration
>Reporter: Hudson
>Priority: Major
>
> No description is provided
> The build Jackrabbit Oak #2659 has failed.
> First failed run: [Jackrabbit Oak 
> #2659|https://builds.apache.org/job/Jackrabbit%20Oak/2659/] [console 
> log|https://builds.apache.org/job/Jackrabbit%20Oak/2659/console]
> {noformat}
> [ERROR] 
> testDSBSGetRecordErrorStats(org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStoreStatsTest)
>   Time elapsed: 1.093 s  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:834)
>   at org.junit.Assert.assertEquals(Assert.java:645)
>   at org.junit.Assert.assertEquals(Assert.java:631)
>   at 
> org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStoreStatsTest.testDSBSGetRecordErrorStats(DataStoreBlobStoreStatsTest.java:306)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8953) Update httpclient/mime dependencies to 4.5.12

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8953:

Fix Version/s: (was: 1.22.1)
   (was: 1.24.0)
   1.26.0

> Update httpclient/mime dependencies to 4.5.12
> -
>
> Key: OAK-8953
> URL: https://issues.apache.org/jira/browse/OAK-8953
> Project: Jackrabbit Oak
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.26.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (OAK-8953) Update httpclient/mime dependencies to 4.5.12

2020-03-15 Thread Julian Reschke (Jira)
Julian Reschke created OAK-8953:
---

 Summary: Update httpclient/mime dependencies to 4.5.12
 Key: OAK-8953
 URL: https://issues.apache.org/jira/browse/OAK-8953
 Project: Jackrabbit Oak
  Issue Type: Task
  Components: parent
Reporter: Julian Reschke
Assignee: Julian Reschke
 Fix For: 1.24.0, 1.22.1






--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OAK-8953) Update httpclient/mime dependencies to 4.5.12

2020-03-15 Thread Julian Reschke (Jira)


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

Julian Reschke updated OAK-8953:

Labels:   (was: candidate_oak_1_10)

> Update httpclient/mime dependencies to 4.5.12
> -
>
> Key: OAK-8953
> URL: https://issues.apache.org/jira/browse/OAK-8953
> Project: Jackrabbit Oak
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
> Fix For: 1.24.0, 1.22.1
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)