geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-1296) OffHeapStoredObject.getRawBytes should assert that it is not called on compressed data
Date Wed, 25 May 2016 22:28:13 GMT

    [ https://issues.apache.org/jira/browse/GEODE-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301008#comment-15301008
] 

ASF subversion and git services commented on GEODE-1296:
--------------------------------------------------------

Commit 6c626b7ebc134d85160ff2d253ed12762fe49728 in incubator-geode's branch refs/heads/feature/GEODE-835
from [~khowe]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=6c626b7 ]

GEODE-1296: change conditional in getRawBytes to assert


> OffHeapStoredObject.getRawBytes should assert that it is not called on compressed data
> --------------------------------------------------------------------------------------
>
>                 Key: GEODE-1296
>                 URL: https://issues.apache.org/jira/browse/GEODE-1296
>             Project: Geode
>          Issue Type: Bug
>          Components: offheap
>            Reporter: Darrel Schneider
>            Assignee: Kenneth Howe
>             Fix For: 1.0.0-incubating.M3
>
>
> The current code does this:
>       if (isCompressed()) {
>         throw new UnsupportedOperationException();
>       }
> It would be more clear if it just did this:
>       assert !isCompressed();



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

Mime
View raw message