You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Ryan McMahon (JIRA)" <ji...@apache.org> on 2018/09/13 19:47:00 UTC
[jira] [Resolved] (GEODE-5725) Many WAN DUnit tests with off-heap
enabled aren't actually exercising off-heap
[ https://issues.apache.org/jira/browse/GEODE-5725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McMahon resolved GEODE-5725.
---------------------------------
Resolution: Fixed
> Many WAN DUnit tests with off-heap enabled aren't actually exercising off-heap
> ------------------------------------------------------------------------------
>
> Key: GEODE-5725
> URL: https://issues.apache.org/jira/browse/GEODE-5725
> Project: Geode
> Issue Type: Bug
> Components: offheap, wan
> Reporter: Ryan McMahon
> Assignee: Ryan McMahon
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.8.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Many of the WAN DUnit tests are run with both off-heap disabled and enabled. However, there is an optimization in the off-heap implementation where if the entry value is less than 8-bytes, off-heap is bypassed and the value is put on the heap. This is due to the value being equal to or less than the size of the off-heap address that would have been used. It is therefore pointless to use off-heap if the value itself is less than the size of the address.
> In many WAN tests we are using longs as values, which will bypass off-heap in this way. However, it is expected that off-heap is being exercised. We should instead use another data type (strings) as values to be sure that the off-heap feature is actually being exercised.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)