Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Not able to retrieve objects after including StorageType.COMPRESSED

Hello all, I have a pretty simple object that is stored in GigaSpaces DataGrid:

public class Context implements Serializable {

private static final long serialVersionUID = -2145781416696207501L;
private String spaceId;
private String contextId;
private Map<String, String> data;

The Map is the filed that holds most of our data. Therefore, in other to improve memory utilization we decided to try the StorageType.COMPRESSED on that field. Everything works fine when we include the object in the space, however when we try to get it the following exception is returned: (Everything was working fine and the only thing we changed was the addition of the annotation)

com.gigaspaces.internal.metadata.converter.ConversionException: java.util.zip.ZipException: invalid entry size (expected 134222852 but got 4225 bytes);

What am I missing? Do I need to do anything else to enable the compressed storage type?

Thank you in advance for your help.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3897]{quote}

asked 2012-08-23 13:28:58 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Victor,
I believe this is a known issue. Check this with support.
Case GS-10594.
Shay

answered 2012-08-23 14:39:21 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Victor

This does indeed seem to be a known issue. We have a reproduction and are waiting for a fix from Engineering.

It should be available in 9.1, and likely as part of 9.0.X as well. If it (GS-10594) is fixed it will say so in the release notes, eg. on this page:

http://wiki.gigaspaces.com/wiki/displ...

On the 'Fixed Issues' tab.

Regards

John

jb gravatar imagejb ( 2012-08-23 15:00:12 -0500 )edit

A workaround would be to compress this yourself using the zip java api. Use the default serialization mode. Compress before you write and un-compress after you read.

shay hassidim gravatar imageshay hassidim ( 2012-08-23 17:11:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-08-23 13:28:58 -0500

Seen: 23 times

Last updated: Aug 23 '12