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

Ask Your Question
0

reading ExternalEntry in partitioned space not working.

Hi, I got this code: ExternalEntry exEntry = new ExternalEntry(uniqueId); ExternalEntry result = gigaSpace.read(exEntry);

in regurlar space the code works fine but when the space is partitioned to 2 this code returns null. why is that?

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

asked 2008-11-30 05:29:04 -0600

sabag2 gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Does it work with a POJO?

MyPOJO temple= new MyPOJO (id);

MyPOJO result = gigaSpace.read(temple);

Shay

answered 2008-11-30 05:57:49 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

in partitioned space it returns null.

sabag2 gravatar image sabag2  ( 2008-11-30 07:33:17 -0600 )edit

Does readMultiple works? Try using both with POJO template and ExernalEntry(uid_array[]) template.

Note that remote read using UID only or a POJO with Id without routing field set might be expensive since all partitions are accessed. It is recommended to have a POJO with routing field set and ID as the template for the read call.

Shay

shay hassidim gravatar image shay hassidim  ( 2008-11-30 07:47:49 -0600 )edit

readMultiple is working, both POJO and ExternalEntry, is it a bug in gigaspaces that read() returns null and readMultiple() return good result?

sabag2 gravatar image sabag2  ( 2008-11-30 08:23:49 -0600 )edit

Which version u use? Does it work with 6.6.1 ?

AFAIK this should work. Please report this to support.

Shay

shay hassidim gravatar image shay hassidim  ( 2008-11-30 08:43:19 -0600 )edit

its 6.6.1, i'll do more specific tests and then add a case in support. thanks.

sabag2 gravatar image sabag2  ( 2008-11-30 09:26:12 -0600 )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: 2008-11-30 05:29:04 -0600

Seen: 20 times

Last updated: Nov 30 '08