openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1801) CacheStatistics misses are improperly calculated.
Date Wed, 06 Oct 2010 13:24:30 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918510#action_12918510
] 

Rick Curtis commented on OPENJPA-1801:
--------------------------------------

@Pinaki -

I came across that javadoc after I opened this JIRA, but I think in the code that I replaced
we could have determined done a better job at determining the runtime type that was being
cached. Either way I think we're in a better place than what we were.

I'm not sure if you looked at the changes I made, but from a high level I moved statistics
calculation from the DataCache level up to the (DataCache)StoreManager level. I did this because
only the StoreManager knows when a hit is really a hit. 

> CacheStatistics misses are improperly calculated.
> -------------------------------------------------
>
>                 Key: OPENJPA-1801
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1801
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 2.0.1, 2.1.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.1.0
>
>
> In doing some testing I found that the DataCache statistics aren't calculated properly.
In the case where there is a cache miss for a specific Type(Person.class), a miss (a read
with no subsequent hit) is recorded for java.lang.Object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message