[
https://issues.apache.org/jira/browse/OAK-11977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke closed OAK-11977.
--------------------------------
> Tree store: BufferOverflowException
> -----------------------------------
>
> Key: OAK-11977
> URL: https://issues.apache.org/jira/browse/OAK-11977
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Major
> Fix For: 1.88.0
>
>
> Building the tree store sometimes fails due to BufferOverflowException:
> {noformat}
> java.nio.BufferOverflowException: null
> at java.base/java.nio.HeapByteBuffer.put(HeapByteBuffer.java:238)
> at java.base/java.nio.ByteBuffer.put(ByteBuffer.java:1242)
> at
> org.apache.jackrabbit.oak.index.indexer.document.tree.store.PageFile.writeString(PageFile.java:159)
>
> at
> org.apache.jackrabbit.oak.index.indexer.document.tree.store.PageFile.toBytes(PageFile.java:133)
>
> at
> org.apache.jackrabbit.oak.index.indexer.document.tree.store.FileStore.put(FileStore.java:97)
> {noformat}
> The problem is that the buffer is too small: only 2 bytes per character.
> UTF-8 encoding often needs 3 bytes per character, depending on the language.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)