geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-306) off-heap and compression can cause UnsupportedOperationException
Date Wed, 02 Sep 2015 16:45:45 GMT


ASF subversion and git services commented on GEODE-306:

Commit f0f61766d0fa9737369b6910d94d1668e011299b in incubator-geode's branch refs/heads/develop
from [~dschneider]
[;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:
>             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(
>         at com.gemstone.gemfire.internal.offheap.SimpleMemoryAllocatorImpl$MemoryBlockNode.getDataType(
>         at com.gemstone.gemfire.internal.offheap.SimpleMemoryAllocatorImpl$MemoryBlockNode.toString(
>         at memscale.OffHeapHelper.dumpOffHeapOrphans(
> {code}

This message was sent by Atlassian JIRA

View raw message