[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-22 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14636646#comment-14636646
 ] 

Konrad Windszus commented on OAK-1842:
--

IMHO this should be fixed with OAK-3107 resolved, right?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.5


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-22 Thread JIRA

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14636667#comment-14636667
 ] 

Michael Dürig commented on OAK-1842:


Set fix versions accordingly. I thought it would be better to have it the other 
way around as this issue wasn't mentioned in the respective release notes. 
Having in accurate information in JIRA is probably more important though as you 
are pointing out. 

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.2.3, 1.3.3, 1.0.18


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-22 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14636658#comment-14636658
 ] 

Konrad Windszus commented on OAK-1842:
--

[~mduerig] Shouldn't the fix version be therefore the same as for OAK-3107, 
namely 1.2.3, 1.3.3 and 1.0.18?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.4


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-16 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14629353#comment-14629353
 ] 

Francesco Mari commented on OAK-1842:
-

Linking this issue to OAK-3107, because it should be possible to save blob IDs 
longer than 4096 bytes for the {{FileBlobStore}} to be properly used.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627769#comment-14627769
 ] 

Francesco Mari commented on OAK-1842:
-

The {{SegmentWriter}} groups blobs in three groups: small, medium and large. 
Small and medium blobs are always inlined in the segment store, and the 
{{BlobStore}}, if there is one, is never used. For larghe blobs, the behaviour 
of the {{SegmentWriter}} differs, depending if a {{BlobStore}} is used. 

If there is no {{BlobStore}}, the blob has to be stored in the TAR files. In 
this case, the TAR storage systems allows very large blobs (larger than you can 
actually store in your hard drive). 

If a {{BlobStore}} is configured, the blob is passed to it and the {{BobStore}} 
just returns a reference to it. The reference is represented by a {{String}}. 
The bug affected this case, because the length of the reference string was not 
validated properly before writing it.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627740#comment-14627740
 ] 

Francesco Mari commented on OAK-1842:
-

A first step in fixing this issue is described in OAK-3105. That issue also 
describes the cause of the behaviour reported here.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627748#comment-14627748
 ] 

Konrad Windszus commented on OAK-1842:
--

Great, thanks for your analysis. I am just wondering why that specific error 
did not occur with the file data store but only with the FileBlobStore, if this 
is caused by a bug in the SegmentWriter. Don't you store the length for all 
data stores with the SegmentWriter?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Chetan Mehrotra (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627803#comment-14627803
 ] 

Chetan Mehrotra commented on OAK-1842:
--

I think thats because the blobId for a FileDataStore is always 40 chars long 
while for FileBlobStore it can be variable depending on number of chunks

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627896#comment-14627896
 ] 

Konrad Windszus commented on OAK-1842:
--

Wouldn't it be a good idea to limit the length of the blobIDs being used by the 
FileBlobStore to only 4095 bytes, until 
https://issues.apache.org/jira/browse/OAK-3107 is fixed?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627894#comment-14627894
 ] 

Francesco Mari commented on OAK-1842:
-

Yes, right. The length of the blob ID generated by the {{FileDataStore}} is way 
below the threshold that triggered the bug discussed in OAK-3105.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-15 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14627903#comment-14627903
 ] 

Francesco Mari commented on OAK-1842:
-

The {{BlobStore}} API doesn't impose any limitation on the size of the 
{{String}} returned as a blob ID. I think it's a good thing to leave freedom to 
the {{BlobStore}} implementation, because sometimes it may be more performant 
to return a large blob ID instead of interacting with the underlying storage 
layer (the file system, in the case of {{FileBlobStore}}).

I think that {{SegmentWriter}} should be ready to accept any blob ID, 
independently from the length. An implementation of {{BlobStore}} that returns 
very large strings shouldn't be allowed to break the internal representation of 
the segment.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-14 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14626263#comment-14626263
 ] 

Konrad Windszus commented on OAK-1842:
--

[~frm] I had the problem with AEM 6.0 (which came with Oak 1.0). Afterwards I 
only used the file datastore, therefore I cannot tell, whether that still is an 
issue with Oak 1.2 or newer

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-07-14 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14626255#comment-14626255
 ] 

Francesco Mari commented on OAK-1842:
-

[~kwin] I'm currently trying to reproduce the issue without any success. Is the 
affected version {{1.0}} as reported?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
Assignee: Francesco Mari
  Labels: resilience
 Fix For: 1.3.3


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-06-01 Thread Francesco Mari (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14567509#comment-14567509
 ] 

Francesco Mari commented on OAK-1842:
-

[~mduerig], I can look into it. Please assign the issue to me.

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
 Fix For: 1.3.0


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-1842) ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used

2015-05-29 Thread JIRA

[ 
https://issues.apache.org/jira/browse/OAK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14564835#comment-14564835
 ] 

Michael Dürig commented on OAK-1842:


[~frm], is this something you could look into?

 ISE: Unexpected value record type: f2 is thrown when FileBlobStore is used
 

 Key: OAK-1842
 URL: https://issues.apache.org/jira/browse/OAK-1842
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: blob
Affects Versions: 1.0
Reporter: Konrad Windszus
 Fix For: 1.3.0


 The stacktrace of the call shows something like
 {code}
 20.05.2014 11:13:07.428 *ERROR* [OsgiInstallerImpl] 
 com.adobe.granite.installer.factory.packages.impl.PackageTransformer Error 
 while processing install task.
 java.lang.IllegalStateException: Unexpected value record type: f2
 at 
 org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:101)
 at 
 org.apache.jackrabbit.oak.plugins.value.BinaryImpl.getSize(BinaryImpl.java:74)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:435)
 at 
 org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getLength(PropertyImpl.java:376)
 at 
 org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.getPackage(JcrPackageImpl.java:324)
 {code}
 The blob store was configured correctly and according to the log also 
 correctly initialized
 {code}
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService 
 Initializing SegmentNodeStore with BlobStore 
 [org.apache.jackrabbit.oak.spi.blob.FileBlobStore@7e3dec43]
 20.05.2014 11:11:07.029 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService Component 
 still not activated. Ignoring the initialization call
 20.05.2014 11:11:07.077 *INFO* [FelixStartLevel] 
 org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK opened: 
 crx-quickstart/repository/segmentstore (mmap=true)
 {code}
 Under which circumstances can the length within the SegmentBlob be invalid?
 This only happens if a File Blob Store is configured 
 (http://jackrabbit.apache.org/oak/docs/osgi_config.html). If a file datastore 
 is used, there is no such exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)