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

Manfred Baedke updated OAK-5125:
--------------------------------
    Description: The interface method 
org.apache.jackrabbit.oak.cache.CacheValue.getMemory() returns an int value, 
while some implementations measure values larger than Integer.MAX_VALUE, 
producing an int overflow. This actually breaks in real life when testing with 
huge repos and machines, since it's used to measure the size of local diffs 
(e.g. a reindexing may diff the whole repo against an empty root).  (was: The 
interface method org.apache.jackrabbit.oak.cache.CacheValue.getMemory() returns 
an int value. Obviously it should return a long value. This actually breaks in 
real life when testing with huge repos and machines, since it's used to measure 
the size of local diffs (e.g. a reindexing may diff the whole repo against an 
empty root).)

> The interface CacheValue.getMemory() should return long instead of int
> ----------------------------------------------------------------------
>
>                 Key: OAK-5125
>                 URL: https://issues.apache.org/jira/browse/OAK-5125
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0.34, 1.2.21, 1.5.13, 1.4.10
>            Reporter: Manfred Baedke
>            Assignee: Manfred Baedke
>            Priority: Blocker
>              Labels: candidate_oak_1_0, candidate_oak_1_2
>             Fix For: 1.6, 1.4.11
>
>
> The interface method org.apache.jackrabbit.oak.cache.CacheValue.getMemory() 
> returns an int value, while some implementations measure values larger than 
> Integer.MAX_VALUE, producing an int overflow. This actually breaks in real 
> life when testing with huge repos and machines, since it's used to measure 
> the size of local diffs (e.g. a reindexing may diff the whole repo against an 
> empty root).



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

Reply via email to