jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Dulceanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-7843) oak-upgrade doesn't correctly pass segment cache size to file store
Date Tue, 16 Oct 2018 16:07:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-7843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652006#comment-16652006

Andrei Dulceanu commented on OAK-7843:

[~tomek.rekawek], my understanding is that the segment cache size needs to be set only on
the source repository, as that is the one doing all the reading, right? Could you take a look
at the attached patch, please?

/cc [~mduerig] [^OAK-7843.patch] 

> oak-upgrade doesn't correctly pass segment cache size to file store
> -------------------------------------------------------------------
>                 Key: OAK-7843
>                 URL: https://issues.apache.org/jira/browse/OAK-7843
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: upgrade
>            Reporter: Andrei Dulceanu
>            Assignee: Andrei Dulceanu
>            Priority: Minor
>         Attachments: OAK-7843.patch
> When setting a segment cache size via the {{--cache SEGMENT_CACHE_SIZE}} option, {{oak-upgrade}}
doesn't correctly pass it to the file store, although it correctly logs the value right after
start. Below meaningful lines from the log, when trying to set a segment cache of 8GB:
> {noformat}
> [...]
> 16.10.2018 17:00:29.834 [main] *INFO*  org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions
- Cache size: 8192 MB
> [..]
> 16.10.2018 17:00:30.144 [main] *INFO*  org.apache.jackrabbit.oak.segment.file.FileStore
- Creating file store FileStoreBuilder{version=1.10-SNAPSHOT, directory=repository/segmentstore,
blobStore=org.apache.jackrabbit.oak.upgrade.cli.blob.LoopbackBlobStore@33b37288, maxFileSize=256,
segmentCacheSize=256, stringCacheSize=256, templateCacheSize=64, stringDeduplicationCacheSize=15000,
templateDeduplicationCacheSize=3000, nodeDeduplicationCacheSize=1048576, memoryMapping=false,
gcOptions=SegmentGCOptions{paused=false, estimationDisabled=false, gcSizeDeltaEstimation=1073741824,
retryCount=5, forceTimeout=60, retainedGenerations=2, gcType=FULL}}
> {noformat}
> It can be observed that the segment cache size remained at 256MB (default).

This message was sent by Atlassian JIRA

View raw message