You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/09/02 18:45:45 UTC

[jira] [Commented] (GEODE-306) off-heap and compression can cause UnsupportedOperationException

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

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

Commit f0f61766d0fa9737369b6910d94d1668e011299b in incubator-geode's branch refs/heads/develop from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=f0f6176 ]

GEODE-306: support printing of off-heap compressed nodes

Before when a chunk of off-heap compressed memory tried to
get the type of the data stored in the chunk it needed to
decompress the data. Since it did not know what decompressor
to use it threw an UnsupportedOperationException.
Now for a compressed chunk it returns the DataType as either
a "compressed object of size xxx" or "compressed byte[xxx]".
It does not do a decompression.
Unit test coverage was added.


> off-heap and compression can cause UnsupportedOperationException
> ----------------------------------------------------------------
>
>                 Key: GEODE-306
>                 URL: https://issues.apache.org/jira/browse/GEODE-306
>             Project: Geode
>          Issue Type: Bug
>          Components: offheap
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> If an off-heap region is also compressed and it has a problem that causes it to try to dump the contents of off-heap memory then that dump can fail with an UnsupportedOperationException. For example:
> {code}
> java.lang.UnsupportedOperationException
>         at com.gemstone.gemfire.internal.offheap.SimpleMemoryAllocatorImpl$Chunk.getRawBytes(SimpleMemoryAllocatorImpl.java:2028)
>         at com.gemstone.gemfire.internal.offheap.SimpleMemoryAllocatorImpl$MemoryBlockNode.getDataType(SimpleMemoryAllocatorImpl.java:3347)
>         at com.gemstone.gemfire.internal.offheap.SimpleMemoryAllocatorImpl$MemoryBlockNode.toString(SimpleMemoryAllocatorImpl.java:3406)
>         at memscale.OffHeapHelper.dumpOffHeapOrphans(OffHeapHelper.java:477)
> {code}



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