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

Ask Your Question
0

Lease renewal in a cluster

If I have a Lease for an Entry that I call renew() on a regular basis and then I suffer a cluster failover, should I still expect that Lease to still be functioning when the cluster completes the failsover from the Primary to the Backup space?

I am getting an exception during and after the failover: net.jini.core.lease.UnknownLeaseException: Failed to renew/cancel leased Entry (may have been already expired or canceled).

It looks like the Lease.renew() operation fails with this message during the failover (but before it is complete) and then once the backup space is available, calling renew() on this lease continues to get the same exception over and over.

Is this normal? Should I be renewing the lease for this Entry some other way?

thanks,

-dave

Edited by: jazzbutcher on Feb 1, 2010 4:40 PM

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

asked 2010-01-30 12:53:32 -0600

jazzbutcher 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

The space object lease is cluster aware. You should be able to renew it after a fail over. Every cluster member has its own lease manager that is responsible to clear expired space objects.

Please report this to support with appropriate test case.

As a workaround - you can "renew" the object lease by calling one of the following:
GigaSpace.write(T entry, long lease, long timeout, int modifiers)
GigaSpace.updateMultiple
IJSpace.update

Make sure the lease renewal interval duration is larger than the time it takes the fail over to be completed.

Shay

answered 2010-02-03 06:47:08 -0600

shay hassidim gravatar image
edit flag offensive delete link more

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: 2010-01-30 12:53:32 -0600

Seen: 189 times

Last updated: Feb 03 '10