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

Ask Your Question
0

Gaps in @SpaceVersion

Hello,

Could we assume that the property annotated by @SpaceVersion is increasing without gaps, or are gaps possible?

In particular, if a Notify Container received an event for a particular object with @SpaceVersion = 4, and later an event for the same object with @SpaceVersion = 6, should we assume that the event with @SpaceVersion = 5 was lost, or is it a perfectly normal to skip a version, for example when a transaction is rolled back?

asked 2017-07-10 01:34:49 -0500

Alexey Serdyuk gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

Answering my own question: yes, gaps in @SpaceVersion are possible. In particular gaps exist when the same object is updated in space more than once in the same transaction. Each update increments the @SpaceVersion, but only the last one is relevant for an event delivery, because all interim versions were inside a not-committed-yet transaction.

answered 2017-07-10 02:37:34 -0500

Alexey Serdyuk 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: 2017-07-10 01:34:49 -0500

Seen: 650 times

Last updated: Jul 10